|
[Sponsors] |
September 16, 2014, 00:27 |
how to use setFields for flame ignition??
|
#1 |
Member
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 12 |
Hello all,
I am using reactingFoam with OF 2.2.0 to simulate turbulent premixed combustion. Attached here is my mesh for the computational domain. https://www.dropbox.com/s/hcb7tqhylz...itled.jpg?dl=0 I wanted to ignite the flame which is why I have decided to use setFields for flame ignition. Following is the file I picked up online. Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM Extend Project: Open Source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue T 300 ); regions ( boxToCell { box (-1 -1 -1) (1 0 1); fieldValues ( volScalarFieldValue T 1650 ); } ); 2. What does the term boxToCell mean and are the points (-1 -1 -1) and (1 0 1) the corner points of the box?? 3. If I have a 2D axisymmetric mesh as shown in the link above, how can I specify a region/plane of high temperature?? 3. If I want to give the information that the premixed gas, CH4+O2 is fully burnt in this box, how can I do so ?? |
|
September 21, 2014, 15:01 |
|
#2 |
New Member
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14 |
Hi Daniel,
1) You should look at a setFieldsDict file from the OF-2.2.0 to know this. Apparently it is OK. 2) It means that the setFields utility will set in the mesh, inside the box given by the corner points (-1 -1 -1) and (1 0 1), the desired characteristics, like the temperature equal to 1650. 3) Using the setFields, as explained above. Even though it is a 3D utility, the third coordinate will be ignored. 4) I'm not used to premixed flames, but they are controlled by chemistry. If you want to burn all the gases, you should set a high temperature (according to Arrhenius model) in this box, using the setFields utility. But this does not necessary keep the flame burning all the gases. It will happen if the flame produces enough heat to sustain itself and it have enough space in the domain to burn all reagents. |
|
September 22, 2014, 11:51 |
|
#3 |
Member
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 12 |
Hi Yuri,
Thanks for your reply, it certainly helps However, I am still confused about how to create a box for a 2D axisymmetric simulation. In OpenFoam an axisymmetric domain is simply a wedge of 5 degrees. How do I create a box in the wedge ?? |
|
September 22, 2014, 13:26 |
|
#4 |
New Member
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14 |
Hi Daniel,
It is not exactly a box that you create inside the mesh, but you will manipulate the elements that are at the intersection between this box and the mesh. For instance, try in the cavity tutorial (incompressible/icoFoam/cavity) the setFields, using the setFieldsDict below: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 3.1 | | \\ / A nd | Web: http://www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue p 0 ); regions ( boxToCell { box ( 0.04 0.04 -1.0 ) ( 0.06 0.06 1.0 ); fieldValues ( volScalarFieldValue p 100 ); } ); // ************************************************** *********************** // You will see in the centre of the cavity the new values for pressure. As you can see, it does not matter if the box is not bounded inside the geometry, as the z-coordinate clearly surpasses the z values for the mesh ( 0 to 0.1). So, you only need to be sure that the box contain the mesh elements that you want to manipulate. Try this setFieldsDict in your wedge geometry as well and you will get the idea. |
|
September 25, 2014, 18:35 |
|
#5 |
Member
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 12 |
Hi Yuri,
Thanks for the info, it worked well. I was looking at a tutorial and they specify velocity as volVectorFieldValue U (0 0 0) in the defaultFieldValues but do not specify it in the 'box'. Does that have any significance ?? |
|
September 25, 2014, 21:26 |
|
#6 |
New Member
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14 |
Hi Daniel,
No, it is just a default value that will be read during the execution of setFields. The fieldValues in the boxToCell only defines the values inside the box, the other mesh parts will be set with default value. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ignition and flame propagation with XiFoam for a few meters long comput. domains | Gloq | OpenFOAM Running, Solving & CFD | 1 | February 21, 2023 13:22 |
Add ignition but combustion does not occur | IColin | OpenFOAM Running, Solving & CFD | 3 | January 19, 2014 02:43 |
Problems with the execution of the setFields utility. | foamer | OpenFOAM Pre-Processing | 5 | June 3, 2013 13:24 |
how does the ignition model initiate main combustion | mepgzzi | Siemens | 0 | June 23, 2012 15:32 |
Ignition modeling | Julie Polyakh | Siemens | 0 | May 20, 2004 09:05 |