|
[Sponsors] |
January 9, 2016, 16:21 |
how to plot U, P, K on OpenFOAM or Parafoam.
|
#1 |
New Member
ghania benahmed
Join Date: Oct 2013
Posts: 4
Rep Power: 12 |
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. |
|
January 9, 2016, 23:22 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
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 |
|
January 10, 2016, 00:59 |
|
#3 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
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. |
|
January 10, 2016, 12:12 |
|
#4 |
New Member
ghania benahmed
Join Date: Oct 2013
Posts: 4
Rep Power: 12 |
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 |
|
January 10, 2016, 13:57 |
|
#5 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
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) ); } |
|
January 10, 2016, 18:55 |
|
#6 |
New Member
ghania benahmed
Join Date: Oct 2013
Posts: 4
Rep Power: 12 |
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 |
|
|
|
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 |