|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 3 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Jan 2012
Posts: 7
Rep Power: 3 ![]() |
Nvm,
found out that you need autoInterpolate true; Br, Klas |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I avoid calculate pressure on 1st itr | hts# | CFX | 2 | September 17, 2010 06:06 |
| external flow with snappyHexMesh | chelvistero | OpenFOAM | 11 | January 15, 2010 19:43 |
| How to calculate ave dinamic pressure? | Nicola | CFX | 1 | July 20, 2006 07:01 |
| Hydrostatic pressure in 2-phase flow modeling (CFX4.2) | HB &DS | CFX | 0 | January 9, 2000 13:19 |
| Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 15:00 |