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

[swak4Foam] Calculate pressure between internal faces

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Kalas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2012, 05:56
Default Calculate pressure between internal faces
  #1
New Member
 
Join Date: Jan 2012
Posts: 7
Rep Power: 14
Kalas is on a distinguished road
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;
 }
);
which I thought would atleast write the average pressure on the sec_inlet faceSet. But my problem is that after the first timestep simpleFoam exits with the error:

Code:
 
--> FOAM FATAL ERROR:
Could not find a field name "p" of type scalar (neither type surfaceScalarField nor volScalarField) Autointerpolate: 0
Obviously there is something I have missed, I just can't figure out what it is.. help would be greatly appreciated!

Thanks,
Klas
Kalas is offline   Reply With Quote

Old   February 3, 2012, 05:18
Default
  #2
New Member
 
Join Date: Jan 2012
Posts: 7
Rep Power: 14
Kalas is on a distinguished road
Nvm,

found out that you need

autoInterpolate true;

Br,
Klas
artymk4 likes this.
Kalas is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[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


All times are GMT -4. The time now is 23:33.