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/)
-   -   Position of a point in dynamic mesh (https://www.cfd-online.com/Forums/openfoam-post-processing/172606-position-point-dynamic-mesh.html)

Caiman June 2, 2016 06:27

Position of a point in dynamic mesh
 
Hi, I have made a simulation of a cylinder whit vortex that induces vibration, I need the data of the position of the cylinder (only move on Y axes) on every time step. How can I get this data??

Lorena2fdez June 3, 2016 13:39

Hi

I think that it's not exactly the solution that you are looking for, but maybe help you to find them.

You can try to use the comand "writeCellCentres". With this you obtain 3 fields with the coordinates of the centres of the cells, for the X coordinate, ccx, for the Y coordinate, ccy... for any time that you have.

Later If you have a zone (INLET for my example) whose cells was moving, you can write at the final of the archive ControlDict the code:

Code:

minmaxdomain_ccy
{
    type fieldMinMax;

    functionObjectLibs ("libfieldFunctionObjects.so");

    enabled true;

    mode component;

    outputControl timeStep;
    outputInterval 1;

    log true;

    fields (ccy);
}

And execute the comand "execFlowFunctionObjects" for obtain in a file postProcessing another file minmaxdomain_ccy with an archive with values of time, the minimum and maximum of the position Y of the cells in INLET (with their other coordinates).

Best regards,
Lorena


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