CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

how to probe a single velocity component using probeLocations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2014, 08:05
Default how to probe a single velocity component using probeLocations
  #1
New Member
 
Davide Lasagna
Join Date: Jul 2014
Posts: 3
Rep Power: 11
gasagna is on a distinguished road
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
gasagna is offline   Reply With Quote

Old   August 19, 2014, 11:53
Default
  #2
New Member
 
Ontario
Join Date: Aug 2014
Posts: 2
Rep Power: 0
samieh is on a distinguished road
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
samieh is offline   Reply With Quote

Old   January 29, 2018, 01:49
Default
  #3
New Member
 
Kadu
Join Date: Jun 2015
Location: India
Posts: 6
Rep Power: 10
Pravin Kadu is on a distinguished road
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);
Pravin Kadu is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Axisymmetric Case 3rd Velocity Component Mentalo OpenFOAM Running, Solving & CFD 2 June 8, 2014 12:45
Suspected division by zero on velocity reported by point probe dahicke STAR-CCM+ 1 July 4, 2013 02:16
Stn frame and radial velocity component in NREL mohammad CFX 1 October 25, 2011 10:13
sampling a strain-rate tensor single component vkrastev OpenFOAM Post-Processing 0 March 2, 2010 07:21
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 17:57.