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

volVectorField -> surfaceVectorField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2012, 12:09
Default volVectorField -> surfaceVectorField
  #1
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 15
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
Location: Auckland
Posts: 627
Rep Power: 19
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


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
Initialize a uniform 0 volVectorField Schag OpenFOAM 4 July 24, 2024 03:18
fvc::div for surfaceVectorField ARTem OpenFOAM Programming & Development 4 November 2, 2018 13:41
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 13:46


All times are GMT -4. The time now is 21:22.