CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

setFieldDict

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2012, 03:55
Default setFieldDict
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   March 26, 2012, 08:20
Default
  #2
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 6
anon_a is on a distinguished road
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.
anon_a is offline   Reply With Quote

Old   March 26, 2012, 08:24
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
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??
samiam1000 is offline   Reply With Quote

Old   March 26, 2012, 09:10
Default
  #4
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 6
anon_a is on a distinguished road
You can check some previous posts for that:

Fixed Temperature Cell in Solution
how to impose fixed value at a point (or region) during calculation ?
specify temperature in cell (in solver)

I am afraid that it is not done easily with some tool, you will have to play with the code.
anon_a is offline   Reply With Quote

Old   March 26, 2012, 09:17
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
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.
samiam1000 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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



All times are GMT -4. The time now is 05:55.