|
[Sponsors] |
July 15, 2010, 08:40 |
Define a new variable
|
#1 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
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 |
|
July 15, 2010, 09:02 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
In that specific case take a look in createFields.H in the interFoam solver.
Best regards, Niels |
|
July 16, 2010, 01:47 |
Thanks
|
#3 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 10:23 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 11:19 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |