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

Initializing cylinder/sphere phase in 5° wedge

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2016, 10:46
Default Initializing cylinder/sphere phase in 5° wedge
  #1
New Member
 
Manuel do Nascimento
Join Date: May 2012
Posts: 14
Rep Power: 13
MdoNascimento is on a distinguished road
Hello,

I am trying to work with a wedge geometry with a solver based on interFoam. One phase has the shape of a sphere in the beginning.

So my geometry is very similar to this one:
https://openfoamwiki.net/index.php/M...C4.2C5.2C2_.3F

When I was working with two- and three-dimensional meshes I used to initialize my alpha1 phase with the cylinderToCell resp. sphereToCell functions in the setFields file.

So, now that I have changed to the wedge shape, those functions don't seem to result in a reasonable cylindric or spherical shape.

My mesh:

convertToMeters 1.0e-2;

vertices
(
(0 -0.5 0) // V00
(0.49952 -0.5 0.02181) // V01
(0.49952 0.5 0.02181) // V02

(0 0.5 0) // V03
(0.49952 -0.5 -0.02181) //
(0.49952 0.5 -0.02181) //
);

blocks
(
hex (0 4 1 0 3 5 2 3) (350 700 1) simpleGrading (1 1 1)
);

patch top
(
(3 5 2 3)
)

patch bottom
(
(0 4 1 0)
)

patch walls
(
(1 4 5 2)
)

empty achse
(
(0 3 3 0)
)

wedge wedge1
(
(0 1 2 3)
)

wedge wedge2
(
(0 3 5 4)


My setFields

cylinderToCell
{
p1 (0 0 -0.001);
p2 (0 0 0.001);
radius 0.001;

fieldValues
(
volScalarFieldValue alpha1 1
MdoNascimento is offline   Reply With Quote

Old   February 16, 2016, 10:46
Default
  #2
New Member
 
Manuel do Nascimento
Join Date: May 2012
Posts: 14
Rep Power: 13
MdoNascimento is on a distinguished road
The result:

It looks like the cylinder was rotated 90°, but I am sure it is not. The cylinder's axys should point in z-direction.
Attached Images
File Type: png Bildschirmfoto vom 2016-02-16 16:48:51.png (6.9 KB, 52 views)
MdoNascimento is offline   Reply With Quote

Old   February 16, 2016, 12:04
Default
  #3
New Member
 
Manuel do Nascimento
Join Date: May 2012
Posts: 14
Rep Power: 13
MdoNascimento is on a distinguished road
I installed swak4foam to ues funkySetFields:

funkySetFields -field alpha1 -expression 0 -time 0 -keepPatches -condition "pow(pos().x,2) + pow(pos().y,2) < pow(0.001,2)"

SAME result ...

any ideas?
MdoNascimento 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
[Other] Wedge patch '*' is not planar LilumDaru OpenFOAM Meshing & Mesh Conversion 6 January 12, 2021 05:55
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 15 May 1, 2016 16:12
[swak4Foam] mass conservation of solid phase violated when using groovyBC with twoPhaseEulerFoam xpqiu OpenFOAM Community Contributions 8 June 17, 2015 02:08
iteration questions in discrete phase iknowjesus FLUENT 4 March 13, 2015 06:07
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32


All times are GMT -4. The time now is 09:15.