|
[Sponsors] |
July 21, 2019, 04:54 |
max(mag(U) vs time
|
#1 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
Hello Everyone,
I am simulating natural convection in a deferentially heated square cavity. I wish to plot the maximum velocity in the domain with respect to time. I tried to use sample dictionary as follows Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object sample; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // type surfaces; libs ("libsampling.so"); interpolationScheme cellPoint; surfaceFomart raw; surfaces ( internalfield { type patchInternalField; patches ("internalField"); interpolate true; offsetMode normal; distance 0; } ); fields (max(mag(U))); // ************************************************************************* // Kindly, please help me to plot max(mag(U)) vs time. Also, please let me know if it is possible to have a live plot of max(mag(U)) vs time using foamMonitor tool. Thank You. With Thanks, Pavithra. |
|
July 22, 2019, 00:04 |
libFieldFunctionObject Could Do This
|
#2 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 |
Hey,
When I want to do this I use a functionObject instead. Try this sample snipped from one of my control dictionaries: Code:
fieldMinMax1 { type fieldMinMax; libs ("libfieldFunctionObjects.so"); writeControl timeStep; writeInterval 1; writeToFile yes; log yes; location yes; mode magnitude; fields (U p_rgh); } Hope that helps, -pete |
|
July 22, 2019, 03:34 |
|
#3 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 7 |
Respected Sir,
Thank you so much. It worked 100% perfect. functionObject is an wonderful tool. Thank You. |
|
September 16, 2021, 10:41 |
OF v9
|
#4 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17 |
Anyone have an idea how to use this in the new OF v9.0? Seems to have disappeared. I cannot even find a comment or anything in the git history.
__________________
www.MantiumCAE.com |
|
October 15, 2021, 14:35 |
|
#5 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7 |
||
Tags |
openfoam, paraview, time plot |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" | bigphil | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 686 | December 22, 2022 10:10 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 03:20 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 08:56 |