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

rhoSimpleFoam initialization with simpleFoal results

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Carlo_P

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2020, 13:45
Default rhoSimpleFoam initialization with simpleFoal results
  #1
Member
 
ishan
Join Date: Oct 2017
Posts: 80
Rep Power: 10
ishan_ae is on a distinguished road
Hello.

I am simulating subsonic compressible flow through a duct.

I plan to initialize the rhoSimpleFoam solution with that of simpleFoam.

I have a couple of questions for this approach which have confused me and slowed down my progress for quite some time:
  1. Would this be the correct way to do things?
    • Solving for turbulence, the usual u,v,w,P and then for T seems correct to me.
  2. Since the pressure field solved using simpleFoam is not pressure but kinematic pressure, how can I use this as an input to initialize the rhoSimpleFoam solution?
    • I ask this because for simpleFoam we will solve for kinematic pressure and not pressure. The units are different from that of pressure.
    • Do I need to multiply my simpleFoam kinematic pressure solution with the reference density before I input it to rhoSimpleFoam solver? This sounds complicated to me and I don't know how to do it.
  3. Mass flow rate or mass flow rate divided by density for flowRateOutletVelocity ?
    • My setup BC contain totalPressure at inlet and flowRateOutletVelocity at outlet. For simpleFoam solving, the flowRateOutletVelocity requires an input for volumetric flow rate and not mass flow rate. I have mass flow rate available with me.
    • At the outlet, I have estimated the density using isentropic flow relations. Would it be wise to divide the mass flow rate with this density, and then specify this as volumetric flow rate to the BC for simpleFoam solution or, should I supply mass flow rate as it is? The latter seems incorrect to me but I am not able to convince myself why so.

Some information on this would be helpful.
ishan_ae is offline   Reply With Quote

Old   September 13, 2020, 16:37
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 863
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
One possible way out is (?) to use rhoSimpleFoam at low Mach number instead using simpleFoam. That is, to use the ramping of parameters of the problem (e.g. mass inflow rate) to generate the initial guess. The foamDictionary scripting tools facilitates the process. Queries on boundary conditions can possibly be resolved by looking into tutorials.
dlahaye is offline   Reply With Quote

Old   September 14, 2020, 02:44
Default
  #3
Member
 
ishan
Join Date: Oct 2017
Posts: 80
Rep Power: 10
ishan_ae is on a distinguished road
Hello.

I was not able to clearly understand what you meant by ramping of parameters. Do you mean steadily changing the parameters of the flow or the solution ? With regards to the Mach number, it is supposed to reach a maximum of 0.7.

Another option which is coming to my mind right now is that I can switch of turbulence solving in rhoSimpleFoam run and then once u,v,w,T have acceptable convergence value, I can solve for turbulence. But again, I am not sure if this is the correct approach. Someone with more experience and knowledge can throw some light on it.
ishan_ae is offline   Reply With Quote

Old   September 14, 2020, 03:37
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 863
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
gradually increase mass inflow rate.
dlahaye is offline   Reply With Quote

Old   September 14, 2020, 09:15
Default
  #5
Member
 
ishan
Join Date: Oct 2017
Posts: 80
Rep Power: 10
ishan_ae is on a distinguished road
Ok. Thanks for the inputs. I will keep that approach as one of the options.
ishan_ae is offline   Reply With Quote

Old   September 28, 2020, 06:22
Default
  #6
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 9
Carlo_P is on a distinguished road
Hey ishan_ae, what I normally do is to run a simpleFoam simulation, then use the U and turbolence to inizialize the rhoSimpleFoam simulation.


The pressure and temperature will start from zero.


This is the simplest way.


Another way is to convert pressure from simple to rho.


The formula can be find here:


https://github.com/Carlopasquinucci/fromPtoPComp


This script is not wokring perfectly, but it is a good starting point.
ishan_ae likes this.
Carlo_P is offline   Reply With Quote

Old   September 30, 2020, 01:20
Default
  #7
Member
 
ishan
Join Date: Oct 2017
Posts: 80
Rep Power: 10
ishan_ae is on a distinguished road
Thanks Carlos. I am also thinking of using U field for initialization.

I will take a look at your script. Thanks for sharing.
ishan_ae is offline   Reply With Quote

Old   September 30, 2020, 09:06
Default
  #8
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 9
Carlo_P is on a distinguished road
You can also have a look into his discussion:
Calculate a new filed from variables in the controldict
Carlo_P is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
rhoSimpleFoam doubts on BC and fvSchemes (external aero) giovanni.medici OpenFOAM Running, Solving & CFD 3 October 27, 2021 06:06
Error Interpolating Results onto New Mesh nammeh CFX 1 March 26, 2019 13:08
Stall behavior w/ initialization from previous results lcbarreto FLUENT 4 October 17, 2017 12:30
Creating a tool to interpolate results Luis Batista OpenFOAM Running, Solving & CFD 2 April 11, 2013 09:15
Different Results from Fluent 5.5 and Fluent 6.0 Rajeev Kumar Singh FLUENT 6 December 19, 2010 12:33


All times are GMT -4. The time now is 06:30.