CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

steady and unsteady case

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By jmdf
  • 1 Post By pupo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2016, 15:21
Default steady and unsteady case
  #1
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
i am a new user of OpenFoam and CFD.
i have used ansys fluent and there is no input parameter for time in steady case simulation,but
for every simulation of OpenFoam we have to specify delta T (time) and end time, so how can i simulate steady case?
how can i decide that my simulation is now in steady state.
please explain. can you suggest me some tutorial or guide for learning openfoam.
srv537 is offline   Reply With Quote

Old   July 14, 2016, 15:38
Default
  #2
Member
 
Joćo Ferreira
Join Date: Nov 2014
Location: Braga, Portugal
Posts: 53
Rep Power: 11
jmdf is on a distinguished road
The delta T you specify on the steady state cases are just for counting the iterations, so the best practice is to use 1.
A steady state case can be solve using steady state solvers, like simpleFoam.

Check the pitzDaily tutorial, the fvSolution contains the entry for the simple algorithm which defines the residual values for each variable. As soon as the residuals are below that value, the simulation stops and the case is considered converged (keep in mind that these values are inserted by the user).
Code:
$FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily
Hope it helps!
srv537 likes this.
jmdf is offline   Reply With Quote

Old   July 19, 2016, 09:05
Default
  #3
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
Quote:
Originally Posted by jmdf View Post
The delta T you specify on the steady state cases are just for counting the iterations, so the best practice is to use 1.
A steady state case can be solve using steady state solvers, like simpleFoam.

Check the pitzDaily tutorial, the fvSolution contains the entry for the simple algorithm which defines the residual values for each variable. As soon as the residuals are below that value, the simulation stops and the case is considered converged (keep in mind that these values are inserted by the user).
Code:
$FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily
Hope it helps!

so we can use any unsteady solver for steady simulation and we just need to modify delta time as 1?
am i right? so icoFoam will work for steady, laminar, Newtonian fluid if i change delta time to 1?

and in openfoam manual simpleFoam is for Steady-state solver for incompressible, turbulent flow. i read in a post and tried for laminar case by modifying turbulenceProperties file in constant folder model as 'laminar' and turbulent off but i got a message
FOAM FATAL ERROR:
Unknown RASModel type laminar

Valid RASModel types:

17
(
LRR
LamBremhorstKE
LaunderSharmaKE
LienCubicKE
LienLeschziner
RNGkEpsilon
SSG
ShihQuadraticKE
SpalartAllmaras
kEpsilon
kOmega
kOmegaSST
kOmegaSSTSAS
kkLOmega
qZeta
realizableKE
v2f
)
pls help me

thank!
srv537 is offline   Reply With Quote

Old   July 19, 2016, 09:24
Default
  #4
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
i tried icoFoam for steady case with delta time = 1 and i got an error

Courant Number mean: 4185.94 max: 25065.3
#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::symGaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:?
#4 Foam::symGaussSeidelSmoother::smooth(Foam::Field<d ouble>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
#5 Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6 ? at ??:?
#7 ? at ??:?
#8 ? at ??:?
#9 ? at ??:?
#10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11 ? at ??:?
Floating point exception (core dumped)
srv537 is offline   Reply With Quote

Old   July 19, 2016, 09:37
Default
  #5
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
Quote:
Originally Posted by srv537 View Post
so we can use any unsteady solver for steady simulation and we just need to modify delta time as 1?
am i right? so icoFoam will work for steady, laminar, Newtonian fluid if i change delta time to 1?
Different solvers have different algorithms designed for steady or unsteady problems. It is possible to use unsteady solver for steady simulations but the way to do this is going to the fvSchemes file and setting

Code:
ddtSchemes           { default steadyState; }
You will also need to modify the remaining schemes to better suit the type of problem being solved. (I can't help you with this sorry)


Setting delta to 1 is just a convention. When using a steady state solver, the solver will still do "time" iterations. these however are physically meaningless so they are used to count iterations. Setting deltat to 0.001 or to 1 has no impact on the results.
saidc. likes this.
pupo is offline   Reply With Quote

Old   July 19, 2016, 09:40
Default
  #6
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
Quote:
Originally Posted by pupo View Post
Different solvers have different algorithms designed for steady or unsteady problems. It is possible to use unsteady solver for steady simulations but the way to do this is going to the fvSchemes file and setting

Code:
ddtSchemes           { default steadyState; }
You will also need to modify the remaining schemes to better suit the type of problem being solved. (I can't help you with this sorry)


Setting delta to 1 is just a convention. When using a steady state solver, the solver will still do "time" iterations. these however are physically meaningless so they are used to count iterations. Setting deltat to 0.001 or to 1 has no impact on the results.
then which solver i should use for steady laminar Newtonian fluid ?
thanks again
srv537 is offline   Reply With Quote

Old   July 19, 2016, 09:55
Default
  #7
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
Quote:
Originally Posted by srv537 View Post
then which solver i should use for steady laminar Newtonian fluid ?
thanks again

It seems that IcoFOAM is indeed the best choice, but you will have to read some more on the correct numerical schemes to be used. I'm afraid i don't know enough about this to provide any meaningful help.

Alternatevely, SimpleFOAM can be used. Depending on your problem you may find a tutorial that is highly identical to yours, just be sure to turn off turbulence by setting

Code:
simulationType  laminar;
in constant/turbolenceProperties
pupo is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulating an unsteady phenomenon with a steady model JochemGrietens Main CFD Forum 2 April 13, 2016 11:51
Is it possible to use Unsteady DPM with Steady flow case ? souria FLUENT 0 October 9, 2014 11:48
Steady and Unsteady nature Natali_Beginner FLUENT 15 April 21, 2013 12:43
Steady or Unsteady Case aqib FLUENT 0 December 22, 2010 01:55
steady or unsteady? (in dpm) winnie FLUENT 1 April 28, 2003 11:30


All times are GMT -4. The time now is 08:15.