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

Steady state solution ----> transient

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2018, 06:48
Default Steady state solution ----> transient
  #1
Member
 
Nat K
Join Date: Oct 2017
Posts: 68
Rep Power: 9
nskelly is on a distinguished road
Hi,

I am looking to use a laminar steady state solution as an initial condition for a laminar transient case. I know it is possible to do so on CFX, but unsure how to do it on OpenFOAM.

I have done the steady state case with simpleFoam, and I guess I need to change the solver to pisoFoam for transient, and the ddt scheme to a transient scheme. I am a bit unsure about the startFrom and startTime, because the steady state case is in iterations, but a transient case is in time steps.

I have read through some posts but I can't find one where someone has managed to do this (please let me know if there is a thread about it)

I think I can use mapFields but unsure how to use if I have the same mesh. Most probably more straighforward than I am thinking. Also is it possible to do this with a decomposed case?
nskelly is offline   Reply With Quote

Old   March 9, 2018, 13:00
Default
  #2
Member
 
Arvind Jay
Join Date: Sep 2012
Posts: 97
Rep Power: 15
arvindpj is on a distinguished road
just change the startFrom flag in the controlDict also with the solver.

Code:
 startFrom       latestTime;
Cheers,
Jay
arvindpj is offline   Reply With Quote

Old   March 12, 2018, 10:25
Default
  #3
Senior Member
 
shereez234's Avatar
 
M Sereez
Join Date: Jan 2014
Location: England
Posts: 353
Blog Entries: 1
Rep Power: 13
shereez234 is on a distinguished road
Quote:
Originally Posted by arvindpj View Post
just change the startFrom flag in the controlDict also with the solver.

Code:
 startFrom       latestTime;
Cheers,
Jay
Jay ; I don't think that this is the only thing to change.

OP;

You need to first change the delta T to a smaller value representing courant number <1 if pisoFoam is your choice of solver.

YOu need to change the fvSchems time marching scheme from steady state to Euler, backward or Crank nickolson (or etc).

If it is the same mesh you don't need to map the results as well just take the saved data for the latest time step in simpleFoam. Inside the data files there will be a file called uniform > time. Edit the index of time to one, time delta value to the desired delta T value.

From there I think your simulation can start.
shereez234 is offline   Reply With Quote

Old   March 12, 2018, 10:50
Default
  #4
Member
 
Nat K
Join Date: Oct 2017
Posts: 68
Rep Power: 9
nskelly is on a distinguished road
Quote:
Originally Posted by shereez234 View Post
Jay ; I don't think that this is the only thing to change.

OP;

You need to first change the delta T to a smaller value representing courant number <1 if pisoFoam is your choice of solver.

YOu need to change the fvSchems time marching scheme from steady state to Euler, backward or Crank nickolson (or etc).

If it is the same mesh you don't need to map the results as well just take the saved data for the latest time step in simpleFoam. Inside the data files there will be a file called uniform > time. Edit the index of time to one, time delta value to the desired delta T value.

From there I think your simulation can start.

Thanks for your answer.

I've change fvSchemes to make it transient, and fvSolution for PISO loop. I have set my required timestep 1e-5 and changed the solver to pisoFoam.

So in the last time directory e.g. 100. I change index - 1, deltaT - 1e-5 and deltaT0 - 1e-5?

And in the controlDict I just change startTime to latestTime (which should be 100 directory)?
nskelly is offline   Reply With Quote

Old   March 12, 2018, 12:49
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,753
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by nskelly View Post
So in the last time directory e.g. 100. I change index - 1, deltaT - 1e-5 and deltaT0 - 1e-5?

And in the controlDict I just change startTime to latestTime (which should be 100 directory)?
The uniform=>time folder contains info for statistics and you can even leave this alone if you reset your statistics or delete this folder entirely. index is how many time-steps have been averaged and deltaT and deltaT0 is the current and previous time-step values. These are needed for resuming calculating averages when you restart a simulation. You should never change these values. The size of your time-step is placed in the controlDict.

Only thing you might want to do is change 100 to 1 or 0. But this is not absolutely necessary because OF will just think that the current time is 100s.

When you do startFrom latestTime;
OF runs a utility that scans your case directory and looks for the biggest time. You can also do:
Code:
startFrom startTime;
startTime 100;
which will have it start from time 100.
This is same for transient as it is for steady state except that the meaning of time is iteration for steady state and time for transient.
CFDouz likes this.
LuckyTran is offline   Reply With Quote

Reply

Tags
laminar, map fields, steady state


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
2way FSi, Initialize with steady solution, Fluent, Transient Sturcural, System Coupli mmkkeshavarzi FLUENT 1 June 28, 2024 08:03
Steady state solution in chtMultiRegionSimpleFoam depends on kappa (t. conductivity)? karoltomek OpenFOAM Running, Solving & CFD 3 May 8, 2014 02:54
is it possible to predict how long it takes to reach steady state solution in unstead Alimohamadi_nasr CFX 4 November 11, 2013 07:11
time to reach steady state with transient simulati prabhu CFX 2 April 21, 2008 11:18
About the difference between steady and unsteady problems Lisa Main CFD Forum 11 July 5, 2000 15:37


All times are GMT -4. The time now is 03:47.