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

surfaceNormalFixedValue depends on pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2016, 03:00
Default surfaceNormalFixedValue depends on pressure
  #1
New Member
 
Ready33's Avatar
 
Radek Sevcik
Join Date: Apr 2015
Location: Brno, Czech Republic
Posts: 4
Rep Power: 11
Ready33 is on a distinguished road
Hello,

I have a simulation with cylindrical inlet (rocket engine with solid propellant). Gas flow thru surface of cylinder, so I use surfaceNormalFixedValue

inlet
{
type surfaceNormalFixedValue;
refValue uniform -1.1269;
}


But there is a problem. Velocity of inlet gas depends on actual pressure

u = u0 . p^k

where u0 and k are constant. Do you have any idea how to do it?
Thaks.
Ready33 is offline   Reply With Quote

Old   June 29, 2018, 07:24
Default
  #2
Member
 
Alberto
Join Date: Sep 2013
Posts: 37
Rep Power: 12
malv83 is on a distinguished road
Quote:
Originally Posted by Ready33 View Post
Hello,

I have a simulation with cylindrical inlet (rocket engine with solid propellant). Gas flow thru surface of cylinder, so I use surfaceNormalFixedValue

inlet

{

type surfaceNormalFixedValue;

refValue uniform -1.1269;


}


But there is a problem. Velocity of inlet gas depends on actual pressure

u = u0 . p^k

where u0 and k are constant. Do you have any idea how to do it?
Thaks.
Hi,

Did you ever accomplish this?...Does any body knows how to do this?

The portion of the code in surfaceNormalFixedValue.C to modify would be:
Code:
Foam::newNormalVelFvPatchVectorField::
newNormalVelFvPatchVectorField
(
    const fvPatch& p,
    const DimensionedField<vector, volMesh>& iF,
    const dictionary& dict
)
:
    fixedValueFvPatchVectorField(p, iF, dict, false),
    refValue_("refValue", dict, p.size())
{
    fvPatchVectorField::operator=(refValue_*patch().nf());
}
I am Thinking that first we have to retrieve the pressure by (not sure):

Code:
const volScalarField& Pw = db().lookupObject<volScalarField>("p");
and then Multiply this by refValue_*patch().nf() which is a volVectorField. Is this possible? Any ideas?
malv83 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
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
Pressure loss Velocity coupling CFXMUFFIN CFX 1 February 6, 2016 04:43
Discharge of Pressure Vessel into Pipe with Regulator gajowni2 System Analysis 0 October 31, 2015 18:57
Unsteady pressure differential between inlet and outlet of the pipe for single phase joshi20h FLUENT 0 September 26, 2012 12:41


All times are GMT -4. The time now is 16:26.