CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

[HowTo]pointVectorField to volVectorField ???

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By frobaux
  • 1 Post By frobaux

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   January 27, 2017, 09:20
Question [HowTo]pointVectorField to volVectorField ???
  #1
New Member
 
Join Date: Nov 2016
Posts: 16
Rep Power: 9
ycui is on a distinguished road
Dear Foamer:

I want to read a flow field from Tecplot data into the OpenFOAM. The fluid information is based on fluid nodes, however, in OpenFOAM the fluid information is based on cells. So I want to do an interpolation.

The way I think so far is that I read the fluid information into a pointVectorField, then interpolate to the volVectorField. In the creatFields.H, I wrote:
Quote:
pointVectorField UPoint
(
IOobject
(
"UPoint",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
pointMesh
);

volVectorField U
(
IOobject
(
"U",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mesh
);
Then I want to do the Interpolation in this way:
Quote:
U = pointVolInterpolation::interpolate(UPoint);
But during compiling error said it cannot find the pointVolInterpolation.

I'm not sure if I doing in the right way or not Can anyone help me on this problem

Thanks in advance!

ycui
ycui is offline   Reply With Quote

 


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
Interpolation of a volVectorField onto processor patches Mithrandirrr OpenFOAM Programming & Development 2 April 5, 2023 17:36
making a volVectorField sina_mech OpenFOAM Programming & Development 7 July 7, 2016 14:49
Multiplication of two volVectorField ChGr OpenFOAM Programming & Development 1 May 30, 2016 11:08
copy/write a same volVectorField to every time step folder hy1112006 OpenFOAM Programming & Development 0 April 18, 2016 22:33
Initialize a uniform 0 volVectorField Schag OpenFOAM 3 August 26, 2009 10:08


All times are GMT -4. The time now is 01:26.