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

Multiple setFields regions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 28, 2016, 03:46
Exclamation Multiple setFields regions
  #1
New Member
 
Marco Grippa
Join Date: Aug 2016
Posts: 3
Rep Power: 2
marcociccio is on a distinguished road
Hi everyone,
I have a huge problem with setFields regions, this is the file:

****************
defaultFieldValues
(
volScalarFieldValue alpha.water 0
volScalarFieldValue k 0.002631185
volScalarFieldValue omega 10.85208933
);

regions
(
boxToCell
{ box (-6 -6 -6) (6 6 0.35);
fieldValues
(volScalarFieldValue alpha.water 1); }

boxToFace
{ box (-6 -6 -6) (6 6 0.35);
fieldValues
(volScalarFieldValue alpha.water 1);}

cylinderToCell
{ p1 (0 0 0.01); p2 (0 0 0.35); radius 0.2932;
fieldValues
( volScalarFieldValue k 0.00238298
volScalarFieldValue omega 2.9972055);}

cylinderToFace
{ p1 (0 0 0.01); p2 (0 0 0.35); radius 0.2932;
fieldValues
( volScalarFieldValue k 0.00238298
volScalarFieldValue omega 2.9972055);}

cylinderToCell
{ p1 (0 0 -0.144); p2 (0 0 0); radius 0.207;
fieldValues
( volScalarFieldValue k 0.0038408
volScalarFieldValue omega 9.430644);}

cylinderToFace
{ p1 (0 0 -0.144); p2 (0 0 0); radius 0.207;
fieldValues
( volScalarFieldValue k 0.0038408
volScalarFieldValue omega 9.430644);}
);
**************

the last 2 regions (cylinderToCell and cylinderToFace) are not set in OpenFOAM, and I have no clue why. The region overlaps with a rotating frame area, addressed in topoSet file. Is that the issue? If yes, how to set it correctly?

I tried setting boxes and cylinderAnnulus instead of cylinders but still not fixed.
Can anyone know about it? I'd truly appreciate it.
Regards,
Marco
marcociccio is offline   Reply With Quote

Old   November 13, 2016, 06:00
Default I'm so sorry to ask a problem! Thank you
  #2
New Member
 
wenju liu
Join Date: Oct 2016
Posts: 6
Rep Power: 2
Aaron liu is on a distinguished road
I don't know whether you have solved it or not! If you have solved it, could you paste your code, thank you! If you have not solve it, i also want more people see it.
Aaron liu is offline   Reply With Quote

Old   November 13, 2016, 06:53
Default Thank you!
  #3
New Member
 
wenju liu
Join Date: Oct 2016
Posts: 6
Rep Power: 2
Aaron liu is on a distinguished road
I have solved your question about cylinderAnnulusToCell, this is my code:
regions
(
cylinderAnnulusToCell
{
p1 (0 0 0);
outerRadius 0.1;
p2 (0 0 0.3);
innerRadius 0.05;
fieldValues
(
volScalarFieldValue alpha.SSC 1
);
}
);
Aaron liu is offline   Reply With Quote

Reply

Tags
boxtocell, cylindertocell, regions, setfields, toposet

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
Clean / Repair STL file with multiple regions on command line matthiasd OpenFOAM Meshing & Mesh Conversion 6 May 24, 2016 06:51
Using snappyHexMesh for multiple enclosed regions richard_vega OpenFOAM Native Meshers: snappyHexMesh and Others 0 November 13, 2014 15:28
multiple regions Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 47 September 9, 2014 09:36
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


All times are GMT -4. The time now is 06:35.