CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

volVectorField -> surfaceVectorField

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 20, 2012, 12:09
Default volVectorField -> surfaceVectorField
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 8
latvietis is on a distinguished road

I'm not completely familiar with what exactly is the difference between volVectorField and surfaceVectorField (if someone could explain in short words and in other way than in Programmers Guide.. though its not the main question), but what I'm sure of is that in

m*M needs to be surfaceVectorField (surface because when I tried to change this to vol then I couldn't compile the solver). The problem is that I want to define m and M values in a volume using setFields, but it needs volField. So my question - is it possible to somehow modify the given code that I could take into account all volume? Is that possible?

latvietis is offline   Reply With Quote

Old   March 20, 2012, 12:19
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 399
Rep Power: 11
Phicau is on a distinguished road

volVectorField is a vector field defined in each of the cells, while surfaceVectorField is defined on the faces.

Easy way to convert from volVectorField Q to surfaceVectorField is: linearInterpolate(Q)


Phicau is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
fvc::div for surfaceVectorField ARTem OpenFOAM Programming & Development 2 January 14, 2017 17:47
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? will.logie OpenFOAM Programming & Development 1 February 16, 2011 21:52
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? will.logie OpenFOAM 0 December 16, 2010 08:08
CAD -> gMsh -> enGrid -> OpenFOAM Problem AlGates OpenFOAM 7 August 6, 2010 12:46
Initialize a uniform 0 volVectorField Schag OpenFOAM 3 August 26, 2009 10:08

All times are GMT -4. The time now is 13:12.