CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Peclet number does not appear in ParaView (https://www.cfd-online.com/Forums/openfoam/77996-peclet-number-does-not-appear-paraview.html)

idrama July 9, 2010 03:52

Peclet number does not appear in ParaView
 
Hello Foamers!

I ran an icoFoam case and afterwards the Pe tool. I wanted to visualize Pe in ParaView I notice that I have no access to fields. I would like to see them, what do I do?

Cheers in advance

marcbest July 9, 2010 06:09

hi claus,

i think you can only see Pe as Vector arrows. To do this you have to type

foamToVTK -surfaceFields

then start paraview and open VTK/surcfaceFields, then "Apply" and Filters/Common/Glyph or simply click the "Glyph" button, after this you can see the vectors of Pe...


i hope this helps

idrama July 9, 2010 07:27

Hello marcbest,

thanks for you advice which had worked, but this way is unsatisfactory, because such an effort must be made. I keep looking for an better solution; probaly the code has to be rewritten.

Cheers

nimasam July 9, 2010 12:51

Hi
why don't you try to add peclet number in creatFields.H? as a variable which it shouldn't be read but it should be write ????

idrama July 10, 2010 04:17

Hi,

what you mean by that? Do you mean to cope the problem by using volScalarField? Currently, I am trying either, but the problem is: I do not know how to compute the measure of the cells, i.e.

Let U, nu and nut be given then

volScalarField Pe
(
IOobject
(
"Pe",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mag(U)/(nu+nut)*"What"
)

What can I insert for "What"?

Cheers

idrama July 10, 2010 04:20

Additionally, I should mention that I am only interesting in Navier-Stokes convection-dominated flows.

nimasam July 10, 2010 07:17

hi friend
one way can be to enter characteristic length, through Dic by "readScalar" function
then put this length instead of "what" but im not sure!!!

alf12 September 15, 2010 11:56

Quote:

I keep looking for an better solution; probaly the code has to be rewritten.
You may have a look at the Co utility, it outputs a volScalarField from a surfaceScarlarField. This could be adapted to the Pe utility


All times are GMT -4. The time now is 07:24.