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

sintax rules to compile setFieldsDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2016, 12:45
Default sintax rules to compile setFieldsDict
  #1
New Member
 
Gabriele
Join Date: Jan 2016
Location: Milan
Posts: 6
Rep Power: 10
leske is on a distinguished road
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
leske is offline   Reply With Quote

Old   January 21, 2016, 15:06
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

You seem to be missing some braces and keywords. See post #2 of http://www.cfd-online.com/Forums/ope...ernatives.html

Cutter
cutter is offline   Reply With Quote

Old   January 21, 2016, 15:58
Default
  #3
New Member
 
Gabriele
Join Date: Jan 2016
Location: Milan
Posts: 6
Rep Power: 10
leske is on a distinguished road
Hi cutter,
thanks for your reply that it was a big help!

leske
leske 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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 04:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 04:59.