Difference between revisions of "G"
From OpenFOAMWiki
Nickninevah (Talk | contribs) (Created page with "= Description = Specifies gravitational acceleration. = Example Input File = <code> /*--------------------------------*- C++ -*----------------------------------*\ | o...") |
Nickninevah (Talk | contribs) (→User Notes) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
= Example Input File = | = Example Input File = | ||
− | < | + | <nowiki> |
/*--------------------------------*- C++ -*----------------------------------*\ | /*--------------------------------*- C++ -*----------------------------------*\ | ||
− | |||
| o | | | | o | | | ||
− | |||
| o o | OpenFOAM (Engys Edition): | | | o o | OpenFOAM (Engys Edition): | | ||
− | |||
| o O o | Version: 2.2_engysEdition-beta | | | o O o | Version: 2.2_engysEdition-beta | | ||
− | |||
| o o | Web: http://www.engys.com | | | o o | Web: http://www.engys.com | | ||
− | |||
| o | | | | o | | | ||
− | |||
\*---------------------------------------------------------------------------*/ | \*---------------------------------------------------------------------------*/ | ||
FoamFile | FoamFile | ||
− | |||
{ | { | ||
− | |||
version 2.0; | version 2.0; | ||
− | |||
format binary; | format binary; | ||
− | |||
class dictionary; | class dictionary; | ||
− | |||
location "../constant"; | location "../constant"; | ||
− | |||
object g; | object g; | ||
− | |||
} | } | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
− | |||
dimensions [ 0 1 -2 0 0 0 0 ]; | dimensions [ 0 1 -2 0 0 0 0 ]; | ||
− | |||
value ( 0 0 -9.8065 ); | value ( 0 0 -9.8065 ); | ||
− | |||
// ************************************************************************* // | // ************************************************************************* // | ||
− | + | </nowiki> | |
− | </ | + | |
= Commands = | = Commands = | ||
Line 69: | Line 52: | ||
− | = User | + | = User Notes = |
* The comment header at the top is not necessary. | * The comment header at the top is not necessary. | ||
− | < | + | <nowiki> |
/*--------------------------------*- C++ -*----------------------------------*\ | /*--------------------------------*- C++ -*----------------------------------*\ | ||
− | |||
| o | | | | o | | | ||
− | |||
| o o | OpenFOAM (Engys Edition): | | | o o | OpenFOAM (Engys Edition): | | ||
− | |||
| o O o | Version: 2.2_engysEdition-beta | | | o O o | Version: 2.2_engysEdition-beta | | ||
− | |||
| o o | Web: http://www.engys.com | | | o o | Web: http://www.engys.com | | ||
− | |||
| o | | | | o | | | ||
− | |||
\*---------------------------------------------------------------------------*/ | \*---------------------------------------------------------------------------*/ | ||
+ | </nowiki> | ||
− | |||
* Remember to terminate all commands with a ; character. | * Remember to terminate all commands with a ; character. |
Latest revision as of 19:10, 28 June 2016
Contents
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 ); // ************************************************************************* //
3 Commands
3.1 dimensions
Required
Specifies the dimensions of units for gravitational acceleration.
3.1.1 Entry Value
dimensions [ 0 1 -2 0 0 0 0 ];
3.2 value
Required
Specifies the value of gravitational acceleration as a vector quantity.
3.2.1 Entry Value
value ( 0 0 -9.8065 );
4 User Notes
- 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.