|
[Sponsors] |
[swak4Foam] Calculate pressure between internal faces |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 31, 2012, 05:56 |
Calculate pressure between internal faces
|
#1 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Hi,
I have a pipe-flow type simulation in which I want to measure the difference in (total)pressure between two internal surfaces. Usually this is done in fluent which allows internal surfaces to be defined, and hence one can calculate pressure and velocity etc on them. But since OF doesn't allow internal surfaces I have defined two faceSets (through fluentMeshToFoam -writeSets). I have discovered OF itself can't really do anything with these, but the swak4foam package supposedly can. But there seems to be something I have missed, because not even swak4foam can read the values on the faceSet. The functions part of my controlDict looks like this: Code:
functions ( averagePresInlet { type swakExpression; valueType faceSet; setname sec_inlet; expression "p"; accumulations ( average ); verbose true; } ); Code:
--> FOAM FATAL ERROR: Could not find a field name "p" of type scalar (neither type surfaceScalarField nor volScalarField) Autointerpolate: 0 Thanks, Klas |
|
February 3, 2012, 05:18 |
|
#2 |
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 14 |
Nvm,
found out that you need autoInterpolate true; Br, Klas |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 08:34 |
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library | aylalisa | OpenFOAM Installation | 23 | June 15, 2015 15:49 |
Compressor Simulation using rhoPimpleDyMFoam | Jetfire | OpenFOAM Running, Solving & CFD | 107 | December 9, 2014 14:38 |
DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 10:01 |
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) | HB &DS | CFX | 0 | January 9, 2000 14:19 |