CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how to use setFields for flame ignition??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2014, 23:27
Question how to use setFields for flame ignition??
  #1
Member
 
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 11
Dan1788 is on a distinguished road
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
        );
    }
);
1. Can this same file be used for OF 2.2.0??
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 ??
Dan1788 is offline   Reply With Quote

Old   September 21, 2014, 14:01
Default
  #2
New Member
 
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14
Yuri Almeida is on a distinguished road
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.
Yuri Almeida is offline   Reply With Quote

Old   September 22, 2014, 10:51
Default
  #3
Member
 
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 11
Dan1788 is on a distinguished road
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 ??
Dan1788 is offline   Reply With Quote

Old   September 22, 2014, 12:26
Default
  #4
New Member
 
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14
Yuri Almeida is on a distinguished road
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.
Yuri Almeida is offline   Reply With Quote

Old   September 25, 2014, 17:35
Default
  #5
Member
 
Daniel
Join Date: Jun 2014
Posts: 60
Rep Power: 11
Dan1788 is on a distinguished road
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 ??
Dan1788 is offline   Reply With Quote

Old   September 25, 2014, 20:26
Default
  #6
New Member
 
Yuri Almeida
Join Date: Jan 2012
Location: Rio de Janeiro, Brazil
Posts: 21
Rep Power: 14
Yuri Almeida is on a distinguished road
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.
Yuri Almeida is offline   Reply With Quote

Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 12:22
Add ignition but combustion does not occur IColin OpenFOAM Running, Solving & CFD 3 January 19, 2014 01:43
Problems with the execution of the setFields utility. foamer OpenFOAM Pre-Processing 5 June 3, 2013 12:24
how does the ignition model initiate main combustion mepgzzi Siemens 0 June 23, 2012 14:32
Ignition modeling Julie Polyakh Siemens 0 May 20, 2004 08:05


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