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 |
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 |
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 13:38. |