|
[Sponsors] |
August 22, 2012, 10:59 |
Setting scalar fields in sprayFoam
|
#1 |
Member
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 14 |
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? |
|
August 22, 2012, 11:29 |
|
#2 |
Member
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 14 |
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.
|
|
|
|
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 24, 2014 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 | Siemens | 2 | May 31, 2010 22:58 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |