# setFieldDict

 Register Blogs Members List Search Today's Posts Mark Forums Read

 March 26, 2012, 03:55 setFieldDict #1 Senior Member   Samuele Z Join Date: Oct 2009 Location: Mozzate - Co - Italy Posts: 496 Rep Power: 11 Dear all, I have found this dictionary, setFieldDict, and I am finding it very useful. I have this dictionary for my case: Code: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue T 278 ); regions ( // Set patch values (using ==) zoneToCell { name air_infinite; fieldValues ( volScalarFieldValue T 298 ); } ); // ************************************************************************* // What I would like to know is if the temperature in the air_infinite zone will remain constant (T = 298) during the whole simulation. Thanks a lot, Samuele

March 26, 2012, 08:20
#2
Senior Member

Join Date: Mar 2011
Posts: 174
Rep Power: 8
Quote:
 What I would like to know is if the temperature in the air_infinite zone will remain constant (T = 298) during the whole simulation.
Well, you will have to do the simulation to check that! :-p
In the general case no, that's just an initial condition.

 March 26, 2012, 08:24 #3 Senior Member   Samuele Z Join Date: Oct 2009 Location: Mozzate - Co - Italy Posts: 496 Rep Power: 11 Code: Well, you will have to do the simulation to check that! :-p That's what I did .. I asked in order to avoid the simulation.. Anyway, do you know how to impse a certain value (let's say temperature) in a volume during the whole simulation??

 March 26, 2012, 09:10 #4 Senior Member   Join Date: Mar 2011 Posts: 174 Rep Power: 8 You can check some previous posts for that: http://www.cfd-online.com/Forums/ope...-solution.html http://www.cfd-online.com/Forums/ope...lculation.html http://www.cfd-online.com/Forums/ope...ll-solver.html I am afraid that it is not done easily with some tool, you will have to play with the code.

 March 26, 2012, 09:17 #5 Senior Member   Samuele Z Join Date: Oct 2009 Location: Mozzate - Co - Italy Posts: 496 Rep Power: 11 Thanks a lot. Actually, I did it for buoyantSimpleFoam, but I am getting a strange errore with buoyantPimpleFoam. I'm trying again and again! Hope to solve it! Thanks again, Samuele.

 March 3, 2017, 02:28 setFielddict #6 New Member   sudhakar singh Join Date: Jun 2016 Posts: 12 Rep Power: 3 hello, I am using following setFieldDict for my case: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue alpha1 0 ); regions ( cylinderToCell { p1 (0 0 0); p2 (0 0 70e-3); radius 2.285-3; fieldValues ( volVectorFieldValue U (0 0 107) volScalarFieldValue f 1; ); } ); // ************************************************** *********************** // I want to know that what is the meaning of this Dict file? fieldValues that i am assigning will be imposed to which face of the cylinder? whether at face having point P1 or face having point P2? I am not able to understand this. Can anybody help me?

 March 3, 2017, 03:58 #7 Senior Member     Kevin van As Join Date: Sep 2014 Location: TU Delft, The Netherlands Posts: 245 Rep Power: 12 Please use [code]-tags to show code. Otherwise you lose alignment/indentation which makes it nasty to read... It is volumetric: All cells within the cylinder with axis (and therefore both its height and position are defined) and radius "radius", are selected. Then the specified values for U and f are applied as initial condition to those cells.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

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