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

cannot set exact 'endtime' in controlDict when using a steady state solver

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By pete20r2
  • 1 Post By RobertHB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2018, 19:16
Default cannot set exact 'endtime' in controlDict when using a steady state solver
  #1
New Member
 
Pu Gong
Join Date: Jul 2018
Location: London
Posts: 22
Rep Power: 8
minecraftgp is on a distinguished road
Hi everyone
I am new to openFoam and I am doing simulation on CO2 diffusion in a room. I want to know the distribution of CO2 concentration in the room after 1 hour and For time saving I used a steady state solver.

I firstly set 3600 for the 'endtime' and 10 for 'delTaT' in controlDict for the simulation. Then I doubled both the 'endtime' and 'delTaT' and do the simulation again and I got the exact same results for the two modeling!

It seems that in the steady state simulation only endTime/delTaT make sense since it control the iterations of the modeling. And I guess set 3600 for the 'endtime' doesnt mean the endtime in modeling is 1 hour?

What should I do if I want to set the exact endtime using a steady state solver?
minecraftgp is offline   Reply With Quote

Old   July 23, 2018, 22:46
Default
  #2
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 12
pete20r2 is on a distinguished road
It's a steady state solver mate, the time means nothing.
Set your deltaT to 1 so at least you can use it as an iteration counter.
pete20r2 is offline   Reply With Quote

Old   July 23, 2018, 23:24
Default
  #3
New Member
 
Pu Gong
Join Date: Jul 2018
Location: London
Posts: 22
Rep Power: 8
minecraftgp is on a distinguished road
Quote:
Originally Posted by pete20r2 View Post
It's a steady state solver mate, the time means nothing.
Set your deltaT to 1 so at least you can use it as an iteration counter.
Hi Peter, thanks for your reply!

I do set the deltaT to 1 for the simulation but I just have no clue about the result. I think what I get for each folder (1,2,3...) is the room condition after (1,2,3...) iterations, like you said, an iteration counter. But what i really want is to know the time interval for each iteration, or the room condition after xxx seconds.

Basicly you are saying that the concept of time is not exist in steady state modeling? So does it mean that we could only use a trasient solver to implement exact time control?

I tried trasient solver but it is really time consuming since I need to set a very small delTaT to limit courant number under 1. So.. are there any other ways to do that?
minecraftgp is offline   Reply With Quote

Old   July 23, 2018, 23:51
Default
  #4
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 12
pete20r2 is on a distinguished road
Quote:
Originally Posted by minecraftgp View Post
Hi Peter, thanks for your reply!

I do set the deltaT to 1 for the simulation but I just have no clue about the result. I think what I get for each folder (1,2,3...) is the room condition after (1,2,3...) iterations, like you said, an iteration counter. But what i really want is to know the time interval for each iteration, or the room condition after xxx seconds.

Basicly you are saying that the concept of time is not exist in steady state modeling? So does it mean that we could only use a trasient solver to implement exact time control?

I tried trasient solver but it is really time consuming since I need to set a very small delTaT to limit courant number under 1. So.. are there any other ways to do that?
You are correct, think of the steady state solver as the result if you were to leave the room for a very long time. If it's working properly, there should not be any development of the fields and the residuals should drop to some low number (1e-3 or less depending on your needs).

A transient solver is what you need if you want to watch the fields develop over time.
There are some things you can do to speed it up but it will always be more time consuming than steady state.
1. Use geometric simplification
Can you run in 2d and get a meaningful result?
Is the case axisymmetric?
Is the case mirrored?
2. Coarsen you mesh and refine only where needed.
3. Use wall functions
4. You can run CFL > 1 with implicit schemes at the cost of accuracy
minecraftgp likes this.
pete20r2 is offline   Reply With Quote

Old   July 24, 2018, 06:13
Default
  #5
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12
RobertHB is on a distinguished road
Quote:
Originally Posted by pete20r2 View Post
[...] and the residuals should drop to some low number (1e-3 or less depending on your needs).
In many cases a residual of 1e-3 will not be the steady-state of your simulation. Try aiming for at least 1e-4, better for 1e-6 [1].


We did not talk about the solver in use here. From my experience, if you only want to solve the diffusion of a species, try using scalarTransportFoam. It usually runs pretty quickly.
minecraftgp likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB 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
Steady State solver for High Mach No flows mecbe2002 OpenFOAM 10 July 6, 2021 04:56
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 08:54
Solver for transonic flow? Martin Hegedus OpenFOAM Running, Solving & CFD 22 December 16, 2015 05:59
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56


All times are GMT -4. The time now is 01:14.