CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   calcFvcGrad output time control (https://www.cfd-online.com/Forums/openfoam-post-processing/167118-calcfvcgrad-output-time-control.html)

Elham February 23, 2016 22:00

calcFvcGrad output time control
 
Hi,

I want to have gradient of velocity field in each 0.1 sec. I am using calcFvcGrad tool in the controlDict. But it is written in every time step. How can I specify my own time step for writing gradient?

Thanks

fabian_roesler February 29, 2016 07:33

Hi

You could choose
Code:

outputControl outputTime;
for the functionObject and use a
Code:

writeInterval of 0.1;
in controlDict.

Cheers

Elham March 16, 2016 02:44

Ug versus position
 
Hi,

Can I have the centre of each cell for the corresponding Ug? I want to plot a function of Ug versus the position in flowfield.

Regards

fabian_roesler March 16, 2016 02:58

paraview with spread sheet view data export
 
Hi,

The easiest way should be using paraview.
In paraview you an visualize the U gradient and open the spread sheet viewer. There you can see all cells with their index, position and stored field values. This spread sheet view can be stored as cvs data which can afterwards be processed in excel or other tools.

Cheers

Fabian

Elham March 16, 2016 21:14

Thanks Fabian,

That's exactly what I want.

Elham March 16, 2016 22:28

cannot save Ug in csv file
 
But I cannot save Ug in csv file. What should I do?

Elham March 17, 2016 03:27

imaginary part of Ug missing
 
Sorry just ignore this message. I mixed up Ug with the eigenvalue.

Elham March 17, 2016 03:39

I solved it myself by selecting the boundary meshes as well as internal mesh.


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