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

codedFixedValue to couple velocity and pressure?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2022, 03:13
Default codedFixedValue to couple velocity and pressure?
  #1
New Member
 
Julian
Join Date: Mar 2022
Posts: 1
Rep Power: 0
seilgu is on a distinguished road
I'm trying to simulate a Fan Filter Unit, when trying to model the HEPA filter at the output, I'm trying to impose the condition that for a small area, the outward velocity component builds up a pressure difference.
For example if the outflow velocity is 1m/s, the pressure on the inside surface of the filter is locally 10Pa; if the outflow is 2m/s, pressure inside is 20Pa.

This is different from the "type fanPressure" condition which sums the total flow rate, so I'm trying to use fixedCodedValue type condition.

the 0/p file contains this outlet patch:

Code:
out_hepaface
{
    type    codedFixedValue;
    value   $internalField;
    name    test;
    
    code
    #{
        scalarField& pField = *this;
        const vectorField& UFace = patch().lookupPatchField<volVectorField, vector>("U");
        const vectorField& np = patch().nf();

        int prop_coef = 1;
        forAll(pField, faceI) {
            pField[faceI] = prop_coef*UFace[faceI] & np[faceI];       
        }
    #};
}
The 0/U file contains :

Code:
out_hepaface
{
    type            pressureInletOutletVelocity;
    value           $internalField;
    inletValue      $internalField;
}
The solver is simpleFoam, and with deltaT = 0.001, it still makes sigFpe errors.

I've been learning OpenFOAM for only about 2 weeks so if you could kindly explain in detail if anything doesn't make sense.
seilgu is offline   Reply With Quote

Reply

Tags
codedfixedvalue, coupled, filter, volvectorfield


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
Import .csv - velocity profile - error eSKa CFX 9 April 3, 2021 13:38
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 02:13
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 00:58.