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

known pressure-inlet velocity calculated needed

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2024, 05:24
Default known pressure-inlet velocity calculated needed
  #1
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
Zomzzz is on a distinguished road
Hi
i am using simple foam and i am not that expert in open foam
the situation which i have now, that i have inlet which has known pressure
and for velocity boundary i want to have something like this

inlet
{ type fixedvalue
value ( calculated calculated 0) }

but the problem that simplefoam doesn't understand calculated

so is there any way to use the pressure inlet as given to open foam and then tell open foam to calculate inlet velocity based on pressure and fix this calculated value for all time steps and iteration.
Zomzzz is offline   Reply With Quote

Old   February 26, 2024, 03:17
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

Probably you can use the pressureInletOutletVelocity boundary condition.

Regards,
Tom
tomf is offline   Reply With Quote

Old   February 26, 2024, 03:31
Default
  #3
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
Zomzzz is on a distinguished road
i think it is not exactly what i want because in pressureInletOutletVelocity boundary i will need to define both pressure and velocity values
i want just to define pressure values and velocity at inlet will be calculated based on that pressure value
Zomzzz is offline   Reply With Quote

Old   February 26, 2024, 03:54
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
Hello,

No need to specify a velocity with pressureInletOutletVelocity

Cheers,
Yann
Yann is offline   Reply With Quote

Old   February 26, 2024, 03:56
Default
  #5
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
Zomzzz is on a distinguished road
but i see in the guide that there is field for velocity:

<patchName>
{
type pressureInletOutletVelocity;
tangentialVelocity <field value>;
value <field value>;

// Optional entries
phi phi;
}

and regarding this boundary where it should be exactly located in p file or u file ?
and it is valid for simplefome ?
Zomzzz is offline   Reply With Quote

Old   February 26, 2024, 04:04
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
The tangential velocity parameter is optional: https://doc.openfoam.com/2312/tools/...utletVelocity/

This is a boundary condition for the U variable, and you can indeed use it with simpleFoam.
AtoHM likes this.
Yann is offline   Reply With Quote

Old   February 26, 2024, 04:17
Default
  #7
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
Zomzzz is on a distinguished road
okay so i define in the u file that the inlet is pressureInletOutletVelocity
like this:

inlet
{
// Mandatory entries
type pressureInletOutletVelocity;
}

and in p file i define the pressure of the in the inlet, correct ?
and last question, i want this inlet velocity to be as fixed value, so i want openfoam to calculate the velocity for the first time based on pressure and fix this calculated value for all simulation, will the pressureInletOutletVelocity do that ?
Zomzzz is offline   Reply With Quote

Old   February 26, 2024, 04:32
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
Quote:
Originally Posted by Zomzzz View Post
okay so i define in the u file that the inlet is pressureInletOutletVelocity
like this:

inlet
{
// Mandatory entries
type pressureInletOutletVelocity;
}

and in p file i define the pressure of the in the inlet, correct ?
Correct.

Quote:
Originally Posted by Zomzzz View Post
and last question, i want this inlet velocity to be as fixed value, so i want openfoam to calculate the velocity for the first time based on pressure and fix this calculated value for all simulation, will the pressureInletOutletVelocity do that ?
No, it will compute velocity at each timestep. You can't fix both velocity and pressure anyway.
Yann 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
Wind tunnel Boundary Conditions in Fluent metmet FLUENT 6 October 30, 2019 12:23
kindly help me .. i have and error at line number 147.. m zubair Fluent UDF and Scheme Programming 0 February 10, 2019 11:25
UDF comilation error. urgent help please m zubair Fluent UDF and Scheme Programming 4 February 10, 2019 11:19
Adjuting oulet pressure till inlet pressure reaches a certain value in timestep pvpnrao OpenFOAM Running, Solving & CFD 2 September 11, 2018 10:14
How to set up the inlet boundary condition for a low pressure case? beastieboys6 FLUENT 3 April 10, 2012 22:46


All times are GMT -4. The time now is 18:17.