CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Using steady state results to initialize flow in unsteady simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2023, 19:14
Smile Using steady state results to initialize flow in unsteady simulation
  #1
New Member
 
Join Date: Jan 2023
Posts: 2
Rep Power: 0
sabesj_ is on a distinguished road
Hello everyone. I have to simulate an unsteady simulation for a short pipe(because of some phenomena that I need to observe which is unsteady in
nature). But I want to initialize the flow under steady-state conditions. So I already ran the simulation in a steady state and needed to use the resulting flow(At the outlet) to initialize the unsteady simulation.

I understand I need to use user-defined field functions, but I do not know how to write the syntax for the same. Is there any resource that I can use to learn the syntax? Any example which is similar in nature will also be a big help.
sabesj_ is offline   Reply With Quote

Old   January 29, 2023, 08:39
Default
  #2
Member
 
Join Date: Nov 2019
Posts: 98
Rep Power: 7
FliegenderZirkus is on a distinguished road
Quote:
...the resulting flow(At the outlet) to initialize the unsteady simulation
Don't you want to use the steady solution everywhere in the domain? Why only at the outlet?


Unless you clear the solution, starccm+ remembers it, so if you solve the steady problem and then switch to unsteady, you continue from the steady solution. Alternatively you can save the steady solution using a mapper, load it into the unsteady simulation as a file table and use interpolation to provide field functions that can be selected in the initial conditions. But this becomes impractical for large problems.
FliegenderZirkus is offline   Reply With Quote

Old   January 29, 2023, 10:17
Default
  #3
New Member
 
Join Date: Jan 2023
Posts: 2
Rep Power: 0
sabesj_ is on a distinguished road
Quote:
Originally Posted by FliegenderZirkus View Post
Don't you want to use the steady solution everywhere in the domain? Why only at the outlet?


Unless you clear the solution, starccm+ remembers it, so if you solve the steady problem and then switch to unsteady, you continue from the steady solution. Alternatively you can save the steady solution using a mapper, load it into the unsteady simulation as a file table and use interpolation to provide field functions that can be selected in the initial conditions. But this becomes impractical for large problems.

That is correct, I want to use the steady state solution for the entire domain to initialize the unsteady solution. I decoupled both legs of the simulation into two different simulation files. That way I don't have to run the steady state case every time I make some changes to the unsteady problem. Moreover I will be doing some mesh refinements, introducing injectors in the unsteady problem which is not necessary for the steady case. So if I have to run it multiple times, it might get cumbersome.

Using the mapper or the user-defined field function, which one would be more suitable? I am new to starccm so I am unable to make a judgement. The problem with udff is I don't know the syntax. I will explore the mapper and see if that works.

Thank you for your reply.
sabesj_ is offline   Reply With Quote

Old   February 8, 2023, 06:03
Default
  #4
Senior Member
 
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 341
Rep Power: 16
Aeronautics El. K. is on a distinguished road
So you have run the steady state part of the simulation and it has converged. And I'm assuming you have saved the simulation file with the solution.

Is there anything stopping you from copying the simulation file with the converged solution, make any changes you want and run from that point as unsteady?
(I'm assuming that the solution interpolation should also be enabled in the physics models)
__________________
Lefteris

Aeronautics El. K. 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
What are the best settings for a channel flow simulation? Ashkan Kashani CFX 3 October 13, 2022 22:36
Adding heat source to chtMultiRegionFoam maddalena OpenFOAM Programming & Development 61 February 17, 2018 09:33
Solver for transonic flow? Martin Hegedus OpenFOAM Running, Solving & CFD 22 December 16, 2015 05:59
Steady state simulation with transient partilcle tracking mali28 FLUENT 2 February 7, 2013 15:25
initialize flow field with steady state solution holg FLUENT 0 July 13, 2009 18:10


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