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

simpleFoam p field for interFoam p field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2011, 05:32
Default simpleFoam p field for interFoam p field
  #1
New Member
 
shyam prasad
Join Date: Mar 2009
Posts: 25
Rep Power: 17
shyam is on a distinguished road
Hi Foamers,

I need to use interFoam to solve a problem, but it blows up within few time steps, which I believe is because of poor initialization . Hence I used simpleFoam to obtain the velocity and pressure fields. Now I want use the pressure field of simpleFoam (with units m^2/S^2) to obtain the pressure field of interFoam (kg/m/s^2) which is nothing but the product of pressure and density. How do I obtain this in openfoam?
shyam is offline   Reply With Quote

Old   November 22, 2011, 05:50
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
some hints you need to investigate yourself
1) Are you familiar with funkySetFields ? its great tool to make non uniform field
2) as a little I know ,you can easily change the dimension in p file ,so you can apply this pressure to interFoam
3)if you want to use pSimple*rho as new in interFoam, you should modified your solver!
something like that
volScalarField pSimple
(
IOobject
(
"pSimple",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
),
mesh
);

p = pSimple*rho;
nimasam is offline   Reply With Quote

Old   November 22, 2011, 06:24
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Quote:
Originally Posted by nimasam View Post
2) as a little I know ,you can easily change the dimension in p file ,so you can apply this pressure to interFoam
But then your off by a factor of the density is suppose?
Quote:
Originally Posted by nimasam View Post
3)if you want to use pSimple*rho as new in interFoam, you should modified your solver!
something like that
If you do this one, I assume the foamCalc utility can do the trick.
Bernhard is offline   Reply With Quote

Old   November 22, 2011, 06:54
Default
  #4
New Member
 
shyam prasad
Join Date: Mar 2009
Posts: 25
Rep Power: 17
shyam is on a distinguished road
Thanks nima and Bernhard for your quick thoughts. I will try option 2 of nima and foamCalc and post my experience.
shyam 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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
irregular pressure field simpleFoam k_xyz OpenFOAM 5 September 7, 2011 09:16
mapping of pressure field (simplefoam to cavitatingFoam) siddharameshwara OpenFOAM Running, Solving & CFD 14 February 15, 2011 09:59
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51


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