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

Calculations and Dimensions

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 6, 2014, 08:04
Default Calculations and Dimensions
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
Hi,

I am working with the multiphaseEulerFoam and I recognized that sometimes fields are initialized like

Code:
volScalarField p
    (
        IOobject
        (
            "p",
            runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
        ),
        mesh
    );
without getting dimensions. On the other hand some fields are initialized like

Code:
volVectorField U
    (
        IOobject
        (
            "U",
            runTime.timeName(),
            mesh,
            IOobject::NO_READ,
            IOobject::AUTO_WRITE
        ),
        mesh,
        dimensionedVector("U", dimVelocity, vector::zero)
    );
Should I initialize fields generally with a dimensioned type especially when using them for calculations or should I initialize fields without any dimension type (-> are they dimless then?) ?
maybee 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
transient calculations! lelia Siemens 9 April 14, 2008 08:33
How to choose a BL dimensions..? Cyril FLUENT 11 September 21, 2007 08:42
Including gravity in calculations!!! gilberto CFX 26 October 15, 2001 20:55


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