CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

volVectorField -> surfaceVectorField

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 20, 2012, 12:09
Default volVectorField -> surfaceVectorField
  #1
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 52
Rep Power: 4
latvietis is on a distinguished road
Greetings!

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

Code:
fvc::div(m*M)
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?

Sincerely,
Martin
latvietis is offline   Reply With Quote

Old   March 20, 2012, 12:19
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Posts: 172
Rep Power: 5
Phicau is on a distinguished road
Hi

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)

Regards

Pablo
Phicau is offline   Reply With Quote

Reply

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 0 March 16, 2011 05:18
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? will.logie OpenFOAM Programming & Development 1 February 16, 2011 20:52
1.7.x -> buoyantPimpleFoam -> hRhoThermo -> incompressible and icoPoly3ThermoPhysics? will.logie OpenFOAM 0 December 16, 2010 07: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 03:32.