|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 6 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 11 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Apr 2019
Location: India
Posts: 81
Rep Power: 6 ![]() |
Respected Sir,
Thank you so much. It worked 100% perfect. functionObject is an wonderful tool. ![]() ![]() Thank You. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 6 ![]() |
||
![]() |
![]() |
![]() |
Tags |
openfoam, paraview, time plot |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 5, 2023 23:48 |
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" | bigphil | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 686 | December 22, 2022 09:10 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 02:20 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |
plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 07:56 |