Difference between revisions of "G"
From OpenFOAMWiki
Nickninevah (Talk | contribs) |
Nickninevah (Talk | contribs) |
||
Line 4: | Line 4: | ||
= Example Input File = | = Example Input File = | ||
<code> | <code> | ||
+ | <nowiki> | ||
/*--------------------------------*- C++ -*----------------------------------*\ | /*--------------------------------*- C++ -*----------------------------------*\ | ||
| o | | | | o | | | ||
Line 49: | Line 50: | ||
=== Entry Value === | === Entry Value === | ||
− | <code> value ( 0 0 -9.8065 ); </code> | + | <code> value ( 0 0 -9.8065 ); |
+ | </nowiki> | ||
+ | </code> | ||
Line 56: | Line 59: | ||
* The comment header at the top is not necessary. | * The comment header at the top is not necessary. | ||
<code> | <code> | ||
+ | <nowiki> | ||
/*--------------------------------*- C++ -*----------------------------------*\ | /*--------------------------------*- C++ -*----------------------------------*\ | ||
| o | | | | o | | | ||
Line 64: | Line 68: | ||
\*---------------------------------------------------------------------------*/ | \*---------------------------------------------------------------------------*/ | ||
+ | </nowiki> | ||
</code> | </code> | ||
* Remember to terminate all commands with a ; character. | * Remember to terminate all commands with a ; character. |
Revision as of 15:15, 20 June 2016
1 Description
Specifies gravitational acceleration.
2 Example Input File
/*--------------------------------*- C++ -*----------------------------------*\ | o | | | o o | OpenFOAM (Engys Edition): | | o O o | Version: 2.2_engysEdition-beta | | o o | Web: http://www.engys.com | | o | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format binary; class dictionary; location "../constant"; object g; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [ 0 1 -2 0 0 0 0 ]; value ( 0 0 -9.8065 ); // ************************************************************************* // </code> = Commands = == dimensions == '''Required''' Specifies the dimensions of units for gravitational acceleration. === Entry Value === <code> dimensions [ 0 1 -2 0 0 0 0 ]; </code> == value == '''Required''' Specifies the value of gravitational acceleration as a vector quantity. === Entry Value === <code> value ( 0 0 -9.8065 );
3 User Nodes
- The comment header at the top is not necessary.
/*--------------------------------*- C++ -*----------------------------------*\ | o | | | o o | OpenFOAM (Engys Edition): | | o O o | Version: 2.2_engysEdition-beta | | o o | Web: http://www.engys.com | | o | | \*---------------------------------------------------------------------------*/
- Remember to terminate all commands with a ; character.