|
[Sponsors] |
OpenFOAM class declaration error with volScalarField |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 2, 2019, 16:46 |
OpenFOAM class declaration error with volScalarField
|
#1 | |
Member
Raunak Bardia
Join Date: Jan 2015
Posts: 32
Rep Power: 11 |
Hi everyone,
I am currently using OpenFOAM v1706. I am trying to declare a class with the internal field of a volScalarField object and a volVectorField object. During class instantiation, I simply want them to be initialized with a uniform zero value. Even though I have copied the constructors used in other OpenFOAM libraries, I am not able to make them work. Here is the code definition for the volScalarField object. In .H file, the variable is defined as: Code:
volScalarField::Internal alphaSource_; Code:
alphaSource_ ( IOobject ( "alphaSource", mesh_.time().timeName(), mesh_ ), mesh_, dimensionedScalar("zero", dimVol, 0) ) Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conflicting declaration of "typedef" class in OpenFOAM | SKLee | OpenFOAM Programming & Development | 1 | March 10, 2018 06:19 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
Possible bug in OpenFoam Interpolation class | MMC15 | OpenFOAM Bugs | 2 | March 23, 2014 13:55 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |