Skip to content

Reply To: STLreader error?

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB General Topics STLreader error? Reply To: STLreader error?

#10644
arjun_raf
Participant

@mathias Yes. In fact, the stl is based on a .prt file that I use to run simulations on StarCCM+. Just to check if the issue is with my model, I created a very simple “flow around a cylinder” model (500 mm X 220 mm) and ran it again. Below is the changed parts of the code:


const T physLength = 0.5; // reference length of simulation geometry in [m]
const T N = 100; // number of voxels per charPhysL
const T dx = physLength / N; // lattice spacing in [m]
const T CFL = 0.05;  
const T Re = 20;
....
....
    UnitConverter<T,DESCRIPTOR> converter(
      (T)   dx,                       // physDeltaX: spacing between two lattice cells in [m]
      (T)   CFL*dx/0.2,               // physDeltaT: time step in [s]
      (T)   physLength,               // charPhysLength: reference length of simulation geometry in [m]
      (T)   0.2,                      // charPhysVelocity: highest expected velocity during simulation in [m/s]
      (T)   0.2*0.05/Re,              // physViscosity: physical kinematic viscosity in [m^2/s]
      (T)   1000.0                    // physDensity: physical density in [kg/m^3]
    );
    converter.print();
    STLreader<T> simvol( "flowaroundcylinder.stl", converter.getPhysDeltaX(), 0.001);

I am still getting the same output as above. I’m not sure what I’m doing wrong 🙁