Reply To: Imported STL Files
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Imported STL Files › Reply To: Imported STL Files
September 19, 2024 at 12:01 pm
#9266
sasan
Participant
Thank you for your helpful tips and for taking the time to assist me.
I have joined the faces as follows:
T voxelSize = 0.001;
T stlSize = 0.001;
int method = 1;
bool verbose = true;
// Read the inlet STL file
STLreader<T> stlReaderInlet("inlet.stl", voxelSize, stlSize, method, verbose);
olb::STLmesh<T> meshInlet = stlReaderInlet.getMesh();
std::shared_ptr<olb::SuperF3D<T, T>> inletGeometry = std::make_shared<olb::SuperF3D<T, T>>(meshInlet);
// Read the outlet STL file
STLreader<T> stlReaderOutlet("outlet.stl", voxelSize, stlSize, method, verbose);
olb::STLmesh<T> meshOutlet = stlReaderOutlet.getMesh();
std::shared_ptr<olb::SuperF3D<T, T>> outletGeometry = std::make_shared<olb::SuperF3D<T, T>>(meshOutlet);
// Read the walls STL file
STLreader<T> stlReaderWalls("walls.stl", voxelSize, stlSize, method, verbose);
olb::STLmesh<T> meshWalls = stlReaderWalls.getMesh();
std::shared_ptr<olb::SuperF3D<T, T>> wallsGeometry = std::make_shared<olb::SuperF3D<T, T>>(meshWalls);
auto combinedGeometry = min(min(inletGeometry, outletGeometry), wallsGeometry);
IndicatorLayer3D<T> extendedDomain(*combinedGeometry, converter.getConversionFactorLength())
;
However, when I attempt to create extendedDomain by passing combinedGeometry to it, I receive the following error:
error: no instance of constructor "olb::IndicatorLayer3D<S>::IndicatorLayer3D [with S=T]" matches the argument list
argument types are: (olb::SuperF3D<T, T>, T)
Could you please guide me on how to resolve this issue? I appreciate your help.