Skip to content

Reply To: Regarding dimensions of the domain and simulation killing in Cylinder3D

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Regarding dimensions of the domain and simulation killing in Cylinder3D Reply To: Regarding dimensions of the domain and simulation killing in Cylinder3D

#8978

Dear Bukreev,
I tried to change the model creating a new geometry using Indicators like in cylinder2d but it didnot worked out. Do I need to preceed with the making of .stl file?

I changed this part in the prepreGeometry section:

// // Set material number for cylinder
// origin[0] = superGeometry.getStatistics().getMinPhysR( 2 )[0]+converter.getConversionFactorLength();
// extend[0] = ( superGeometry.getStatistics().getMaxPhysR( 2 )[0]-superGeometry.getStatistics().getMinPhysR( 2 )[0] )/2.;
// std::shared_ptr<IndicatorF3D<T>> cylinder = std::make_shared<IndicatorCuboid3D<T>>( extend, origin );
// superGeometry.rename( 2,5, cylinder );
// Set material number for cylinder (new geometry along Y-axis)
origin[1] = superGeometry.getStatistics().getMinPhysR(2)[1] + extend[1] / 4.; // Centered
extend[1] = extend[1] / 2.; // Increase along Y-axis
std::shared_ptr<IndicatorF3D<T>> cylinder = std::make_shared<IndicatorCuboid3D<T>>(extend, origin);
superGeometry.rename(2, 5, cylinder);