CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Setting scalar fields in sprayFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2012, 10:59
Default Setting scalar fields in sprayFoam
  #1
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 4
vainilreb is on a distinguished road
Hi there,

I'm trying to evaluate gas dispersion performance of sprayFoam and so I wanted to initialize a cloud of pure NH3 in a room filled with air (77% N2, 23% O2). I set up the setFieldsDict as follows:

defaultFieldValues
(
volScalarFieldValue NH3 0
volScalarFieldValue O2 0.23
volScalarFieldValue N2 0.77
);

regions
(
boxToCell
{
box (0 0 0) (0.1 0.1 0.1);
fieldValues
(
volScalarFieldValue NH3 1
volScalarFieldValue 02 0
volScalarFieldValue N2 0
);
}
);


The setFields-Function works fine - no warnings, no errors - but in the end I don't get these fields set up. So what's wrong?
vainilreb is offline   Reply With Quote

Old   August 22, 2012, 11:29
Default
  #2
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 4
vainilreb is on a distinguished road
Well, it turned out to be the mesh. There was no cell center inside the small box, because the cells where to large. Or something like this.
vainilreb 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 Yesterday 00:48
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 02:47
Schemes for strictly bounded scalar fields stawrogin OpenFOAM 1 July 19, 2010 18:16
Cells with t below lower limit Purushothama CD-adapco 2 May 31, 2010 22:58
Warning 097- AB CD-adapco 6 November 15, 2004 05:41


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