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

Steady-state solution as IC for transient simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2019, 14:22
Default Steady-state solution as IC for transient simulation
  #1
New Member
 
pardoa
Join Date: May 2018
Posts: 29
Rep Power: 8
pardoa is on a distinguished road
Hello everyone,

I wish to run a transient simulation with interFoam using as ICs the results from a prior steady-state model. The grid and BCs are exactly the same for both models.

I aim to simulate the flow discharge of an alluvial river, so the inlet is constrained by a variableHeightFlowRateInletVelocity BC, based on a user-specified volumetric flow rate, whereas at the outlet is applied a totalPressure BC to allow the flow running unconstrained out of the domain.

The only thing that changes between both models is the flowRate parameter of the variableHeightFlowRateInletVelocity BC, that is constant in the steady-state simulation and time-varying in the transient one.

If I set "latestTime" as starting time of the transient simulation in the controlDict file, the model will take automatically the results from the time directory corresponding to last simulated time of the steady-state simulation. However, the U file within that time directory, will include a constant flow rate value, which doesn't work for a transient simulation.

Therefore, my question is: how can I use the results from the steady-state model together with a time-varying flow rate table from the beginning of the transient simulation?

Many thanks in advance.
Álvaro
pardoa is offline   Reply With Quote

Old   July 24, 2019, 03:16
Default
  #2
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8
yambanshee is on a distinguished road
You could open the U file of your latest time, search for the boundary you need to change and change just that
yambanshee is offline   Reply With Quote

Old   July 24, 2019, 06:53
Default
  #3
New Member
 
pardoa
Join Date: May 2018
Posts: 29
Rep Power: 8
pardoa is on a distinguished road
Quote:
Originally Posted by yambanshee View Post
You could open the U file of your latest time, search for the boundary you need to change and change just that
Hello!

Indeed, I replaced the constant flowRate value by a table of values, and it worked! Thank you so much for the help.

Álvaro
pardoa is offline   Reply With Quote

Old   July 24, 2019, 07:49
Default
  #4
New Member
 
pardoa
Join Date: May 2018
Posts: 29
Rep Power: 8
pardoa is on a distinguished road
I have another small question: when defining the flowRate table, the first row of the matrix should include the same time as the time directory and the volumetric flow rate value corresponding to the previous steady-state simulation, right? Else, the model won't take the right values for each simulated time.
pardoa 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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 22:43
Steady State solution and Transient solution ari003 Main CFD Forum 9 March 11, 2019 10:19
STeady State Simulation prashantthaker208 FLUENT 0 March 4, 2014 01:48
initialize flow field with steady state solution holg FLUENT 0 July 13, 2009 18:10
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 01:47.