|
[Sponsors] | |||||
postProcess -field U -func mag, Why it gives error? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
|
Hi guys.
Ok, I already know that I can use the following code and compute the mag of U easily: Code:
postProcess -func "mag(U)" Code:
postProcess -fields "(p U)" -func wallShearStress Code:
postProcess -field U -func mag Code:
Time = 1
Reading fields:
volVectorFields: U
Executing functionObjects
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type volScalarField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type surfaceScalarField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type volVectorField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type surfaceVectorField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type volSphericalTensorField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type surfaceSphericalTensorField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type volSymmTensorField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type surfaceSymmTensorField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type volTensorField
--> FOAM Warning : functionObjects::mag mag cannot find required object <fieldName> of type surfaceTensorField
--> FOAM Warning : functionObjects::mag mag failed to execute.
Cheers & Stay Healthy!
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 13 ![]() |
You need a configuration file in the system directory, like this:
https://github.com/OpenFOAM/OpenFOAM...ing/fields/mag change the <fieldName> to U and then: Code:
postProcess -func mag -field U
__________________
https://openfoam.top |
|
|
|
|
|
|
|
|
#3 | |
|
Senior Member
|
Quote:
But I already have the configuration file in the OpenFOAM caseDicts directory. However, I copied the file into my system folder too: Code:
foamGet mag Cheers
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
||
|
|
|
||
|
|
|
#4 |
|
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 13 ![]() |
Don't forget to change the <fieldName> to U
__________________
https://openfoam.top |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
|
Yea, that did the trick. Thanks!
However, I get two warnings whenever I try to compute mag(U) field using any method. Do you know why? Code:
Time = 1
Reading fields:
volVectorFields: U
Executing functionObjects
--> FOAM Warning : functionObjects::mag mag cannot find required object U of type volScalarField
--> FOAM Warning : functionObjects::mag mag cannot find required object U of type surfaceScalarField
functionObjects::mag mag writing field: mag(U)
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 13 ![]() |
Me too. Just forget it.
__________________
https://openfoam.top |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
| Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
| Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 08:24 |
| CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
| Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |