AntoineJ
Forum Replies Created
-
AuthorPosts
-
AntoineJParticipant
Yes it works,
Last question about the relaxation time, I don’t understand how you defined it for each example.
For the example of laminar flow around a cylinder, it is 0.56 for the 2D simulation and 0.53 for the 3D case.This relaxation time is related to viscosity and the time step, as the viscosity is defined by the velocity and the Reynolds number, the relaxation time basically define the time step.
So the strategy is to find a time step where there is a good stability/accuracy or the relaxation time that makes sense for a specific case?Greetings,
AntoineAntoineJParticipantPerfect thanks,
I tried to save drag coefficient data on a file but it only works for one random time step value and not for every one, I don’t find why ? (Is there a way to write the drag coefficient at every x time step ?)
The code is :
CSV<T> csvWriterSim(“SimulationV=” + std::to_string(converter.getCharPhysVelocity()));
csvWriterSim.writeDataFile(converter.getPhysTime( iT ), _drag[0], 16);Another question, when I look a the simulation it looks like the flow is coming back into the channel from the pressure outlet.
I don’t know if it is normal and if it stops after several time steps or if there is a problem with my boundary conditions ?Thank you for your help,
AntoineAntoineJParticipantThat’s what I did for the inflow but I have errors when compiling the file.
I set the velocity in the parameters of the simulation: const T Velocity = 0.05;
Then I defined the inflow condition instead of the Poiseuille inflow: sLattice.defineU( superGeometry, 3, Velocity );I don’t know where I’m wrong
Thanks
-
AuthorPosts