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

Setting scalar fields in sprayFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2012, 09:59
Default Setting scalar fields in sprayFoam
  #1
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 13
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, 10:29
Default
  #2
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 13
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


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
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 23, 2014 23:48
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
Schemes for strictly bounded scalar fields stawrogin OpenFOAM 1 July 19, 2010 17:16
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 19:25.