CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Initializing a transient case with a steady-state solution

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 1 Post By LuckyTran
  • 2 Post By MKuhn
  • 1 Post By LuckyTran
  • 1 Post By ALBATTROSS
  • 1 Post By Yasser
  • 1 Post By AidealZohary

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2019, 22:32
Default Initializing a transient case with a steady-state solution
  #1
New Member
 
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 7
ALBATTROSS is on a distinguished road
Hello everyone,

I reached a steady solution in a transient simulation then I want to run another transient simulation using the steady state solution achieved in previous simulation as the initial condition for the whole domain. The geometry doesn’t changes. How can I do that?
I searched the fluent documentation, however I couldn’t find a way to patch the previous solution to the new case.

Thank you
ALBATTROSS is offline   Reply With Quote

Old   March 23, 2019, 00:25
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
More info please! Same geometry doesn't tell us anything about what is the same and what is not.

Is it the same .cas file and you just change boundary conditions or what is this "new case"? Do you have a new mesh or no?

If it starts from the same .cas file then you don't need to do anything. If you have a new mesh then you export the the solution data by writing an interpolate file. Then you can import this interpolate file onto the new case.
ALBATTROSS likes this.
LuckyTran is offline   Reply With Quote

Old   March 23, 2019, 09:15
Default
  #3
New Member
 
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 7
ALBATTROSS is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
More info please! Same geometry doesn't tell us anything about what is the same and what is not.

Is it the same .cas file and you just change boundary conditions or what is this "new case"? Do you have a new mesh or no?

If it starts from the same .cas file then you don't need to do anything. If you have a new mesh then you export the the solution data by writing an interpolate file. Then you can import this interpolate file onto the new case.
Hi,

Yes the mesh structure and size is also the same, I will only change the boundry conditions and by new case I mean new .cas file starting from flow time = 0, In my existing.cas file when I initialize the case the solution will be erased so it’s interesting to know how to initialize a solution as initial condition in same .cas file too.
So it doesn’t have anything to do with patch?
ALBATTROSS is offline   Reply With Quote

Old   March 25, 2019, 02:41
Default
  #4
Senior Member
 
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 207
Rep Power: 17
MKuhn is on a distinguished road
From the previous solution. Just change the boundary conditions, and set flow-time and time-step to zero by typing to the command line (with brackets):

(rpsetvar 'flow-time 0)
(rpsetvar 'time-step 0)

Then save *.cas and *.dat with a new name.

It has nothing to do with patch under the solution initialization panel. With patch you write a constat value of a certain propertie to the cells of the selected domain.
ALBATTROSS and From_IRAN like this.
MKuhn is offline   Reply With Quote

Old   March 25, 2019, 07:53
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by ALBATTROSS View Post
In my existing.cas file when I initialize the case the solution will be erased so it’s interesting to know how to initialize a solution as initial condition in same .cas file too.
Just don't initialize it and it will keep the current solution. Do not press the initialize button! You literally have to do nothing.


And then you can use the rpsetvar mentioned to reset the flow-time to 0 or whatever.
ALBATTROSS likes this.
LuckyTran is offline   Reply With Quote

Old   March 27, 2019, 02:40
Default
  #6
New Member
 
Amir
Join Date: Oct 2018
Posts: 17
Rep Power: 7
ALBATTROSS is on a distinguished road
Quote:
Originally Posted by MKuhn View Post
From the previous solution. Just change the boundary conditions, and set flow-time and time-step to zero by typing to the command line (with brackets):

(rpsetvar 'flow-time 0)
(rpsetvar 'time-step 0)

Then save *.cas and *.dat with a new name.

It has nothing to do with patch under the solution initialization panel. With patch you write a constat value of a certain propertie to the cells of the selected domain.
Thank you Mortiz! It helped a lot.
MKuhn likes this.
ALBATTROSS is offline   Reply With Quote

Old   October 22, 2020, 06:20
Default
  #7
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
Hello LuckyTran,

Since we are initializing a transient simulation with the steady state simulation earlier, from your experience how do you think this will affect the final results? I'm simulating an airfoil at Re 1million using k omega SST intermittency and notice that with different initialization values from the steady state simulation will give different lift and drag values in after running transient.

Eg: case A, initialized using steady state simulation after 300 iterations and case B, after 200 iterations.

In the transient setup, i monitor the lift, drag and max courant value in the system. Used adaptive with incremental time steps. 20 iterations per time step and timestep interval updated after 20 iterations. I stop reducing the time step once the courant monitor shows a value ~0.9. Then let it run until lift and drag give negligible change.

Please shed some light.
AidealZohary is offline   Reply With Quote

Old   February 9, 2021, 13:42
Default
  #8
New Member
 
Santiago Montoya
Join Date: Jul 2020
Posts: 2
Rep Power: 0
smo8812 is on a distinguished road
Quote:
Originally Posted by AidealZohary View Post
Hello LuckyTran,

Since we are initializing a transient simulation with the steady state simulation earlier, from your experience how do you think this will affect the final results? I'm simulating an airfoil at Re 1million using k omega SST intermittency and notice that with different initialization values from the steady state simulation will give different lift and drag values in after running transient.

Eg: case A, initialized using steady state simulation after 300 iterations and case B, after 200 iterations.

In the transient setup, i monitor the lift, drag and max courant value in the system. Used adaptive with incremental time steps. 20 iterations per time step and timestep interval updated after 20 iterations. I stop reducing the time step once the courant monitor shows a value ~0.9. Then let it run until lift and drag give negligible change.

Please shed some light.
Hello AidealZohary,


I am dealing with something similar or equal to what you mentioned in your comment.
Did you find a good criteria or something to initialize your transient simulation?


Thanks in advance.
smo8812 is offline   Reply With Quote

Old   February 9, 2021, 14:01
Default
  #9
Member
 
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 52
Rep Power: 19
Yasser is on a distinguished road
Quote:
Originally Posted by smo8812 View Post
Hello AidealZohary,


I am dealing with something similar or equal to what you mentioned in your comment.
Did you find a good criteria or something to initialize your transient simulation?


Thanks in advance.
If you have a steady solution, you don't need to initialize. Just change the solver to transient and your calculated values from steady solution is already there.
Phanindra Raavi likes this.
Yasser is offline   Reply With Quote

Old   February 9, 2021, 14:23
Default
  #10
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
Hi smo8812,

Yasser is correct, just change the turbulence model. Additionally here is how I approached the remaining portion of the problem in case you're interested. Also, I actually don't need the CFL number since this is an implicit case.


1. Run steady-state until your residuals are stable. In my case where I was using a structured grid via ICEM, it took me around 200 iterations.

(You don't need the residuals to drop like crazy before going to step 2, because once turning on the transition model your residuals will jump back up.)

2. Change your model using the Intermittency/Transition SST but still in steady-state. Continue with another 80 iterations.

(80 is based on my case where the residuals start to act weird at 100. So 80 just to be on the safe side.)

3. Proceed with unsteady simulation and I chose a timestep of 0.001s with 10 inner iterations. Here it is very important to let your simulation converge before using a smaller timestep. (my biggest mistake was changing to a smaller timestep when the current timestep was not properly resolved.) You can monitor your cl and cd, it will drop continuously. Once it is somewhat stable, then use a smaller timestep. It is advised that your timestep should be reduced by half. So it is something like 0.001, 0.0005,0.00025....

4. You can play around with your initial timestep size. It is case-dependent.

Tip: I find it easier to monitor my residuals when Fluent is reporting it according to my inner iterations. You can tweak this in the settings before running your calculations. This will "hide" the zig-zag shape in your monitor.

I am currently waiting for my work on the simulation to be published. Ill post it here in the future if someone wants to look at my results.
Phanindra Raavi likes this.
AidealZohary is offline   Reply With Quote

Old   February 10, 2021, 04:03
Default
  #11
New Member
 
Santiago Montoya
Join Date: Jul 2020
Posts: 2
Rep Power: 0
smo8812 is on a distinguished road
Quote:
Originally Posted by AidealZohary View Post
Hi smo8812,

Yasser is correct, just change the turbulence model. Additionally here is how I approached the remaining portion of the problem in case you're interested. Also, I actually don't need the CFL number since this is an implicit case.


1. Run steady-state until your residuals are stable. In my case where I was using a structured grid via ICEM, it took me around 200 iterations.

(You don't need the residuals to drop like crazy before going to step 2, because once turning on the transition model your residuals will jump back up.)

2. Change your model using the Intermittency/Transition SST but still in steady-state. Continue with another 80 iterations.

(80 is based on my case where the residuals start to act weird at 100. So 80 just to be on the safe side.)

3. Proceed with unsteady simulation and I chose a timestep of 0.001s with 10 inner iterations. Here it is very important to let your simulation converge before using a smaller timestep. (my biggest mistake was changing to a smaller timestep when the current timestep was not properly resolved.) You can monitor your cl and cd, it will drop continuously. Once it is somewhat stable, then use a smaller timestep. It is advised that your timestep should be reduced by half. So it is something like 0.001, 0.0005,0.00025....

4. You can play around with your initial timestep size. It is case-dependent.

Tip: I find it easier to monitor my residuals when Fluent is reporting it according to my inner iterations. You can tweak this in the settings before running your calculations. This will "hide" the zig-zag shape in your monitor.

I am currently waiting for my work on the simulation to be published. Ill post it here in the future if someone wants to look at my results.
AidealZohary, thanks for taking your time and share what you did with your simulation.


I am working in an aeroacoustics problem. I am simulating a flow over a symmetrical airfoil to get the pressure data to then feed a code to get the sound pressure at some receiver points. My problem is that I initialize the simulation in steady state, but when I turn into transient the variables I am monitoring remain constant and don't exhibit any fluctuation. So in the end I cannot get any sound propagation.


I will follow the steps you mentioned because I am doubtful if my way to initialize with steady state is correct.


It would be nice to see the results of your work.


Thanks again!
smo8812 is offline   Reply With Quote

Old   February 10, 2021, 04:25
Default
  #12
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
Hi smo8812,

Hopefully, the steps will help with cl and cd.

But also another important thing is once you start using time-dependent settings, and want to get the actual data, don't forget to store your data every "N" number of iterations that you may need for post-processing your pressure fluctuations.

That is maybe the reason why you're getting only constant readings. I am not familiar with aeroacoustics and maybe someone else can help.

__________________________________________________ ____________________________________________
Numerical Investigation on the Pressure Drag of Some Low-Speed Airfoils for UAV Application
https://doi.org/10.37934/cfdl.13.2.2948

Unsteady 2D simulation of the NACA 0012, NACA 4415, FX 61-184, E420, and S1223. Manually generated the body-fitted mesh using ICEM and the 3-Equation Intermittency Transitional Model was used. Good overall agreement with XFOIL and published data. Informative paper to understand the relationship between airfoil geometry and the production of pressure drag

Last edited by AidealZohary; March 3, 2021 at 16:07.
AidealZohary is offline   Reply With Quote

Old   June 13, 2022, 13:27
Default Report files
  #13
New Member
 
Nima
Join Date: Apr 2022
Posts: 18
Rep Power: 4
Nima Shah is on a distinguished road
Quote:
Originally Posted by AidealZohary View Post
Hi smo8812,

Yasser is correct, just change the turbulence model. Additionally here is how I approached the remaining portion of the problem in case you're interested. Also, I actually don't need the CFL number since this is an implicit case.


1. Run steady-state until your residuals are stable. In my case where I was using a structured grid via ICEM, it took me around 200 iterations.

(You don't need the residuals to drop like crazy before going to step 2, because once turning on the transition model your residuals will jump back up.)

2. Change your model using the Intermittency/Transition SST but still in steady-state. Continue with another 80 iterations.

(80 is based on my case where the residuals start to act weird at 100. So 80 just to be on the safe side.)

3. Proceed with unsteady simulation and I chose a timestep of 0.001s with 10 inner iterations. Here it is very important to let your simulation converge before using a smaller timestep. (my biggest mistake was changing to a smaller timestep when the current timestep was not properly resolved.) You can monitor your cl and cd, it will drop continuously. Once it is somewhat stable, then use a smaller timestep. It is advised that your timestep should be reduced by half. So it is something like 0.001, 0.0005,0.00025....

4. You can play around with your initial timestep size. It is case-dependent.

Tip: I find it easier to monitor my residuals when Fluent is reporting it according to my inner iterations. You can tweak this in the settings before running your calculations. This will "hide" the zig-zag shape in your monitor.

I am currently waiting for my work on the simulation to be published. Ill post it here in the future if someone wants to look at my results.

Hi AidealZohary,
I have a question regarding the continuation from steady state to transient. I have a CLSVOF simulation with the steady state and some report files have been generated.
The RMS for mass conservation is stable but is in the order of 1e-2. Can i continue from that point on with just changing the model to transient and not initializing?
I have faced the error : SIGSEV on one of the nodes. (attached below FL_2Lit Paralle...)
Is it because of the mass conservation, timestep size which is 0.0001 or the autosave options?
I wonder if you can let me know how I can proceed with same setup but just changing the model from ss to transient and the settings for autosave.
Regards
Attached Images
File Type: jpg FL_2lit_parallel_NOCHANGE.jpg (114.0 KB, 15 views)
Nima Shah is offline   Reply With Quote

Old   June 13, 2022, 13:36
Default
  #14
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
Hi Nima,

Can you please describe your problem? I see that you have reversed flow at the outlet
AidealZohary is offline   Reply With Quote

Old   June 13, 2022, 14:05
Default
  #15
New Member
 
Nima
Join Date: Apr 2022
Posts: 18
Rep Power: 4
Nima Shah is on a distinguished road
Quote:
Originally Posted by AidealZohary View Post
Hi Nima,

Can you please describe your problem? I see that you have reversed flow at the outlet
That is a venturi tube with an inlet from air directly to the neck.
The initial conditions for inlet_air is pressure inlet = 0 (atmospheric)
Inlet water velocity inlet resulting in some specific lit/min and in turbulent k-eps realizable.
The implicit body forces is activated and the VOF combined with level set. The reverse flow is not that much important I guess, the main concern is how I need to initialize?
Currently I initialize from all zones patching the air vf to be zero at fluid domain. I have tried other sources such as from inlet air or water inlet though they are not close to the real problem.
Water flows at high speed and sucks the air.
The mesh is also attached.
steady setup was 10000 iterations and unsteady should be finally, 0.0001 timestep size for about 1500 total timesteps
Regards
Attached Images
File Type: jpg Quality ,esh 863k elements.jpg (88.6 KB, 6 views)
Nima Shah is offline   Reply With Quote

Old   November 11, 2023, 00:30
Default
  #16
New Member
 
Kadari Mahesh
Join Date: Nov 2023
Location: HYDERABAD
Posts: 4
Rep Power: 2
MAHESH9966 is on a distinguished road
Hi Everyone,


I am working on Electric motor ( Permanent Magnet Synchronized motor ) conjugate heat transfer analysis. Currently i am simulating the steady state simulation and completed around 8000 iterations using the SIMPLEC method.


Now i want to move ahead with Transient-simulation with different loss densities for coils and magnets. My problem is can i change the source terms of coils & Magnets in the same steady state simulation setup along with changing the steady state option to transient???


Do i need to re-initialize the system to continue with transient simulation???


I searched the fluent tutorial guide but i couldn't figure out any command or procedure. It will be very very helpful if anyone give me some suggestions. Hoping for positive answers soon
MAHESH9966 is offline   Reply With Quote

Old   November 12, 2023, 22:45
Default
  #17
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
it is good practice to use steady state simulation results to initialize transient simulation
so you don't need to reinitialize case to run transient
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   November 12, 2023, 23:42
Default
  #18
New Member
 
Kadari Mahesh
Join Date: Nov 2023
Location: HYDERABAD
Posts: 4
Rep Power: 2
MAHESH9966 is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
it is good practice to use steady state simulation results to initialize transient simulation
so you don't need to reinitialize case to run transient

Thank you so much for your kind reply.


Actually which part i want to clarify is, In my case motor is running at low rpm with certain losses and then running at peak power. so initially i want to run with low rpm case losses so that motor got stabilized after that i want to continue with the same simulation for peak power losses in transient case. Could you please help me how to change the source terms of coil & magnets and continue with transient simulation.


once again thank you for your reply
MAHESH9966 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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
is it possible to predict how long it takes to reach steady state solution in unstead Alimohamadi_nasr CFX 4 November 11, 2013 06:11
Case comparison of steady state and time-averaged transient solutions k.vafiadis CFX 2 October 20, 2012 05:37
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
About the difference between steady and unsteady problems Lisa Main CFD Forum 11 July 5, 2000 14:37


All times are GMT -4. The time now is 11:44.