|
[Sponsors] |
January 21, 2016, 13:45 |
sintax rules to compile setFieldsDict
|
#1 |
New Member
Gabriele
Join Date: Jan 2016
Location: Milan
Posts: 6
Rep Power: 10 |
Hello,
I'm working with a fairly simple geometry (kind of cilinder). I would set a boundary condition on the entrance face of the cylinder that allows me to have a double entrance: water and oil. For this purpose,i thought about using setFieldsDict .In the tutorial i found several examples of setFields but all with boxToCell that isn't right for my case. I would use cylinderToCell but I can't use the right syntax rules. Here below there is the text of my setFieldsDict: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object setFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // defaultFieldValues ( volScalarFieldValue alpha.water 1 ); regions ( cylinderToCell (0.5 0.01 0) (0.422878 0.01 0) 0.005; fieldValues ( volScalarFieldValue alpha.water 0 ); ); Can anyone help me ? Thank you Leske |
|
January 21, 2016, 16:06 |
|
#2 |
Senior Member
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16 |
Hi,
You seem to be missing some braces and keywords. See post #2 of http://www.cfd-online.com/Forums/ope...ernatives.html Cutter |
|
January 21, 2016, 16:58 |
|
#3 |
New Member
Gabriele
Join Date: Jan 2016
Location: Milan
Posts: 6
Rep Power: 10 |
Hi cutter,
thanks for your reply that it was a big help! leske |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 | gwierink | OpenFOAM Installation | 0 | April 5, 2011 05:38 |
PV3FoamReader compile error.... | PEM_GUY | OpenFOAM Installation | 6 | April 5, 2010 18:22 |
Error compile file udf | czfluent | Fluent UDF and Scheme Programming | 24 | September 26, 2009 14:24 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |