|October 24, 2010, 21:33||
Join Date: Mar 2009
Location: MÃ¼nchen, Bavarian, Deutschland
Posts: 24Rep Power: 8
I am struggling to initialize volScalarField with internalField and also with path values.
I found out following structure.
I am not getting what is this xyz, I think its internal field.
and to initialize this field by its patch values i did following
A.boundaryField()[patchi] = 300;
in this way, 300 gets assigned to the whole boundary patches. when I write it in openfoam, then I get xyz in internal field and 300 at the patches, its right, BUT, when this field is used in a solver that is built in code, and this field is first of all initialized as above mentioned method then it does not give same results as I read in this Field inside the code.
I think there is a problem with internal field. Can anyone give me some suggestions?
What i want, is to initialize the fields in my code and want to use these fields inside the solver that is also built in my code, in order to save read and write time consumption.
Thanks in advance.
|October 26, 2010, 23:00||
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418Rep Power: 14
Can you post a more extense portion of your code? Maybe some includes are overwriting your hard-coded initialization.
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to create initiate a volScalarField p without reading from disk NO_READ does not seem to work||dbxmcf||OpenFOAM Running, Solving & CFD||12||August 22, 2013 07:32|
|FMG initialization query||Mohsin||FLUENT||4||August 16, 2010 01:21|
|Problems with creating a volScalarField||georlade||OpenFOAM Programming & Development||2||July 6, 2010 02:19|
|if-loop, volScalarField comparison||volker||OpenFOAM||5||April 23, 2010 14:18|
|compressor initialization||paglia||FLUENT||0||February 1, 2006 16:14|