CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Total pressure in cuttingPlane

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 14, 2018, 12:20
Default Total pressure in cuttingPlane
  #1
New Member
 
Join Date: Feb 2018
Posts: 1
Rep Power: 0
KotsarinisPromRacing is on a distinguished road
I want to create a cutting plane with the values of the total pressure, but i cannot figure out the proper way to write it in the cuttingPlane dict.I use a function from pressure tools to calculate the field of total pressure and as an output i get a file similar to U with the name total(p). But when I try to use the name of the field in the cuttingPlane dict the plane that is created is empty (it's like I have done a typo or something like that). I have tried to use "total(p)",'total(p)', total(p).* , ptot , "ptot" ,'ptot'. Thanks for your time in advance!

cuttingPlane:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/

cuttingPlane_Symmetry
{
type surfaces;
functionObjectLibs ("libsampling.so");
outputControl outputTime;

surfaceFormat vtk;
fields ( total(p) );

interpolationScheme cellPoint;

surfaces
(
Symmetry
{
type cuttingPlane;
planeType pointAndNormal;
pointAndNormalDict
{
basePoint (0 0 0);
normalVector (0 1 0);
}
interpolate true;
}
);
}




// ************************************************** *********************** //





controlDict:


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application simpleFoam;

startFrom latestTime;

startTime 0;

stopAt endTime;

endTime 3;

deltaT 1;

writeControl timeStep;

writeInterval 3;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

functions
{
streamLines
{
type streamLine;

// Where to load it from (if not already in solver)
functionObjectLibs ("libfieldFunctionObjects.so");

// Output every
outputControl outputTime;
// outputInterval 10;

setFormat vtk; //gnuplot;//xmgr;//raw;//jplot;//csv;//ensight;

// Velocity field to use for tracking.
UName U;

// Tracked forwards (+U) or backwards (-U)
trackForward true;

// Names of fields to sample. Should contain above velocity field!
fields (p k U);

// Steps particles can travel before being removed
lifeTime 10000;

// Number of steps per cell (estimate). Set to 1 to disable subcycling.
nSubCycle 5;

// Cloud name to use
cloudName particleTracks;

// Seeding method. See the sampleSets in sampleDict.
seedSampleSet uniform; //cloud;//triSurfaceMeshPointSet;

uniformCoeffs
{
type uniform;
axis x; //distance;

start (-0.0205 0.001 0.00001);
end (-0.0205 0.0251 0.00001);
nPoints 10;
}
}

pressure // user-defined name of function object entry
{
type pressureTools;
functionObjectLibs ("libutilityFunctionObjects.so");
rhoName rhoInf;
rhoInf 1.2047;
rhoRef 1.2047;
pRef 0;
pInf 0;
UInf (15 0 0);
//region defaultRegion;
enabled yes;
timeStart 0;
//timeEnd 10;
outputControl outputTime;
//outputControl timeStep;//outputTime;
//outputInterval 1; // 5000;
calcTotal yes;
calcCoeff no;
}


#include "cuttingPlane"

}




// ************************************************** *********************** //
KotsarinisPromRacing 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
Pressure Inlet Boundary Conditions Mr.Goodcat FLUENT 5 June 20, 2019 01:47
Static or Total Pressure Inlet Boundary, Understanding problem Overdue CFX 13 August 4, 2016 07:25
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Total pressure to static pressure ratio roadracer Siemens 1 April 17, 2003 05:31
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


All times are GMT -4. The time now is 07:57.