|
[Sponsors] |
Plotting courant number from rhoPimpleFoam in paraview? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 1, 2018, 22:19 |
Plotting courant number from rhoPimpleFoam in paraview?
|
#1 |
Member
Anonymouse
Join Date: Dec 2015
Posts: 98
Rep Power: 11 |
I've got a simulation that's running abnormally slow in order to try to prevent exceeding its specified maximum courant number. Looking at the data in paraview, nothing appears out of the ordinary. So the idea obviously came to mind to plot the courant number itself in paraview / parafoam. However, "postProcess -func CourantNo" is giving up:
Code:
--> FOAM FATAL ERROR: request for volScalarField rho from objectRegistry region0 failed available objects of type volScalarField are 1(surfaceSum(mag(phi))) From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>] in file /opt/OpenFOAM-v1806/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 239. |
|
October 2, 2018, 01:01 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
It is much easier to send the log file through a grep or awk script which gives the Courant number together with some other data like simulated time.
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
October 2, 2018, 04:21 |
|
#3 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
OpenFoam also offers a Courant Number function which you can add to your controlDict.
Code:
functions { #includeFunc CourantNo } And then you could use the foam monitor to plot the Co number if i'm not mistaken.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return |
|
October 2, 2018, 06:35 |
|
#4 |
Member
Anonymouse
Join Date: Dec 2015
Posts: 98
Rep Power: 11 |
||
October 2, 2018, 06:36 |
|
#5 | |
Member
Anonymouse
Join Date: Dec 2015
Posts: 98
Rep Power: 11 |
Quote:
|
||
October 2, 2018, 08:29 |
|
#6 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 |
It doesn't, i misunderstood your endavour. You can always calculate your Co. in paraview with the calculator. But it will be an mirrorimage of your velocity.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return |
|
October 2, 2018, 08:32 |
|
#7 |
Member
Anonymouse
Join Date: Dec 2015
Posts: 98
Rep Power: 11 |
It's more than just velocity, the cell size with respect to the velocity vector matters. It's not enough just to display U in paraview.
|
|
February 18, 2020, 15:04 |
|
#8 | |
Member
Gui Miotto
Join Date: Feb 2020
Posts: 30
Rep Power: 6 |
Quote:
So here is how you do it: First, you add the Courant number function object to your ControlDict: Code:
functions { Co1 { type CourantNo; libs ("libfieldFunctionObjects.so"); executeControl timeStep; executeInterval 2; writeControl writeTime; } } Then advance to the second timestep of you simulation and the Co will be available for visualization (as the other regular variables - pressure, velocity, etc.) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 22:00 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 16:03 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |