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

how to plot U, P, K on OpenFOAM or Parafoam.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2016, 16:21
Default how to plot U, P, K on OpenFOAM or Parafoam.
  #1
New Member
 
ghania benahmed
Join Date: Oct 2013
Posts: 4
Rep Power: 12
ghaniaben is on a distinguished road
Hi,
please , is there someone who can tell me how I can have the plot of U, P, K on OpenFOAM or Parafoam.
thanks in advance.
ghaniaben is offline   Reply With Quote

Old   January 9, 2016, 23:22
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

I do not understand by "plot of U, p, k". You can open OpenFOAM case files in ParaView and see the results which are read from the time folders.

All you would need for this would be a dummy file with .foam extension in the case folder.

Open this ".foam" file with ParaView and you should be able to see the results.

Personally, I haven't used paraFoam, and so am unable to advise on that.

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   January 10, 2016, 00:59
Smile
  #3
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
Hi ghaniaben,

1.You can plot U,T and p fields in paraView by plot over line utility in filters

menu.

2.In your case you can add probes to controlDict for calculating in special

point and line for special segment.

3.Finally,you can simply use of swakFunctionObject from swak4Foam package.
rapierrz is offline   Reply With Quote

Old   January 10, 2016, 12:12
Default
  #4
New Member
 
ghania benahmed
Join Date: Oct 2013
Posts: 4
Rep Power: 12
ghaniaben is on a distinguished road
Hi
thank you for your answers, Antimony and Rapierrz,
Yes Rapierrz actually I want to add: Velocity probe positions and gauge positions, but I do not know how I do, so if you could tell me how I do it , step by step, I squeezed very grateful.
thank you again.

Ghania
ghaniaben is offline   Reply With Quote

Old   January 10, 2016, 13:57
Smile
  #5
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
If you want to calculate temperature,pressure and velocity fields in position

(x,y,z):

functions
(
probes // or any other name
(
type probes;
functionObjectLibs ("libsampling.so");
//region fluid; //or solid for conjugate problems
enabled true;
outputControl timeStep;
outputInterval 1;

fields
(
p
T
U
);

probeLocations
(
(x y z)
);

}
rapierrz is offline   Reply With Quote

Old   January 10, 2016, 18:55
Default
  #6
New Member
 
ghania benahmed
Join Date: Oct 2013
Posts: 4
Rep Power: 12
ghaniaben is on a distinguished road
okay, thank you for your help rapierrz
So, I recapitulate; for my case, i want to calculate pressure, velocity and area elivation, fields in a position. here is my control Dict before and after the addition of functions. Please tell me if I am right or not
Before :

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

application interFoam;

startFrom latestTime;

startTime 0;

stopAt endTime;
//stopAt writeNow;


endTime 16;

deltaT 0.01;

writeControl adjustableRunTime;

writeInterval 0.2;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 0.6;

maxAlphaCo 0.9;

maxDeltaT 1;

/*functions
{
#includeIfPresent "../waveGaugesNProbes/surfaceElevationAnyName_controlDict";
}*/

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


after:

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

application interFoam;

startFrom latestTime;

startTime 0;

stopAt endTime;
//stopAt writeNow;


endTime 16;

deltaT 0.01;

writeControl adjustableRunTime;

writeInterval 0.2;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression uncompressed;

timeFormat general;

timePrecision 6;

runTimeModifiable yes;

adjustTimeStep yes;

maxCo 0.6;

maxAlphaCo 0.9;

maxDeltaT 1;

functions
{
#includeIfPresent "../waveGaugesNProbes/surfaceElevationAnyName_controlDict";
probes // or any other name
(
type probes;
functionObjectLibs ("libsampling.so");
region fluid; //or solid for conjugate problems
enabled true;
outputControl timeStep;
outputInterval 1;

fields
(
p
U
);

probeLocations
(
(x y z)
);

}

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


about a Surface elevation, here is my control Dict, could you tell me what do I need to change ?

surfaceElevationAnyName
{
type surfaceElevation;
functionObjectLibs ( "libwaves2Foam.so" );

outputControl timeStep; // Alternative: outputTime
outputInterval 20;

//Additional output controls in waves2Foam
//samplingStartTime -1;
//surfaceSampleDeltaT 0.025;

setFormat raw;
interpolationScheme cellPointFace;
fields (alpha.water);

#includeIfPresent "../waveGaugesNProbes/surfaceElevationAnyName_sets";

}



thank you rapierrz

ghania
ghaniaben 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
[OpenFOAM] Plot in ParaFoam kulkarni Harshawardhan ParaView 0 February 28, 2013 03:04
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 16:04.