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/)
-   -   how to probe a single velocity component using probeLocations (https://www.cfd-online.com/Forums/openfoam-post-processing/140462-how-probe-single-velocity-component-using-probelocations.html)

gasagna August 15, 2014 08:05

how to probe a single velocity component using probeLocations
 
Hi,

I am using with success the utility probeLocations to probe the pressure field at selected points. Probing the velocity field also works in general, but I need only one of the velocity components. I could parse the generated file for post processing, but it would be more simple if i only get one velocity component only, as the resulting file would be simpler.

Is this possible?

Thanks,

Davide

samieh August 19, 2014 11:53

hi
i am trying to do the same job.would you please tell me how you did that? i want to calculate the pressure on some points on my column but i do not know the file which should be added in contdic
thanks alot

Pravin Kadu January 29, 2018 01:49

You can write your own solver by adding the fields . I did it for me.

To create fields (createFields.H):
Info<< "Reading field Uxvel\n" <<endl;
volScalarField Uxvel
(
IOobject
(
"Uxvel",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

Info<< "Reading field Uyvel\n" <<endl;
volScalarField Uyvel
(
IOobject
(
"Uyvel",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

Info<< "Reading field Uzvel\n" <<endl;
volScalarField Uzvel
(
IOobject
(
"Uzvel",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

For solver (solver is renamed - pimpleFoamComponentsCalc.C)-
Uxvel = U.component(0);
Uyvel = U.component(1);
Uzvel = U.component(2);


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