CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Define a new variable (https://www.cfd-online.com/Forums/openfoam/78208-define-new-variable.html)

ata July 15, 2010 07:40

Define a new variable
 
Hi FOAMers
How can I define a dimensioned variable (e.g. volScalarField rho) in my own code and initialize it in the main code not reading from the controlDict?
Any help will be appreciated
Best regards

Ata

ngj July 15, 2010 08:02

In that specific case take a look in createFields.H in the interFoam solver.

Best regards,

Niels

ata July 16, 2010 00:47

Thanks
 
Hi Niels Gjoel Jacobsen
Thank you very much for your reply. I'll check it and if I have any question I'll ask.
Best regards

Ata


All times are GMT -4. The time now is 18:28.