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

Multiple setFields regions

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By Aaron liu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2016, 04:46
Exclamation Multiple setFields regions
  #1
New Member
 
Marco Grippa
Join Date: Aug 2016
Posts: 3
Rep Power: 10
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: 10
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: 10
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
);
}
);
v199ah, shadiS, AnnaF and 1 others like this.
Aaron liu is offline   Reply With Quote

Reply

Tags
boxtocell, cylindertocell, regions, setfields, toposet


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[snappyHexMesh] multiple regions Tobi OpenFOAM Meshing & Mesh Conversion 56 March 29, 2020 05:53
[CAD formats] Clean / Repair STL file with multiple regions on command line matthiasd OpenFOAM Meshing & Mesh Conversion 6 May 24, 2016 07:51
[snappyHexMesh] Using snappyHexMesh for multiple enclosed regions richard_vega OpenFOAM Meshing & Mesh Conversion 0 November 13, 2014 15:28
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21


All times are GMT -4. The time now is 12:20.