|
[Sponsors] |
May 25, 2023, 16:47 |
Create a wedge shaped cell-set
|
#1 |
New Member
Gabriel Jacobina
Join Date: May 2023
Posts: 2
Rep Power: 0 |
Hello, I'm using Open Foam 10 with the chtMultiRegionFoam. My goal is to firstly simulate only the solid part of the problem using fixed value and fixed gradient BC.
But I'm having trouble assigning my domain (a wedge) to the solid cell set. I couldn't find a function in the topoSet user guide https://www.openfoam.com/documentati...g-topoSet.html. To specify a Wedge as an cell set. If possible I really would like some help. My blockMeshDict file is as bellow: Code:
convertToMeters 0.001; //All in [mm] //heights h_0 0.0; h_1 15.0; h_2 25.0; h_3 50.0; h_4 56.0; h_5 60; // radii r_b 56.0; //Bag radius r_bc 70.0; //Bag cavity radius r_plt 78.0; //Plate radius r_bp 80.0; //Base Plate radius // Plate angle ang 5; angr #calc "degToRad($ang)"; //Bag x_b #calc "$r_b*cos($angr)"; y_b #calc "$r_b*sin($angr)"; y_b_n #calc "-$y_b"; //layer 0 x_0 #calc "$r_bc*cos($angr)"; y_0 #calc "$r_bc*sin($angr)"; y_0n #calc "-$y_0"; //layer 1 x_1 #calc "$r_bp*cos($angr)"; y_1 #calc "$r_bp*sin($angr)"; y_1n #calc "-$y_1"; //layer 2 x_2 #calc "$r_plt*cos($angr)"; y_2 #calc "$r_plt*sin($angr)"; y_2n #calc "-$y_2"; vertices ( //SAT bag Points (0 0 $h_1) //0 ($x_b $y_b $h_1) //1 ($x_b $y_b_n $h_1) //2 (0 0 $h_2) //3 ($x_b $y_b $h_2) //4 ($x_b $y_b_n $h_2) //5 ); blocks ( hex (0 2 1 0 3 5 4 3) (16 5 4) simpleGrading (1 1 1) ); boundary ( //Base cilinder wedge_BC { type empty; faces ( (0 3 3 0) ); } empty_BC { type empty; faces ( (0 3 4 1) (0 2 5 3) ); } up_down_BC { type patch; faces ( (3 5 4 3) (0 1 2 0) ); } frontal { type patch; faces ( (2 1 4 5) ); } ); edges ( arc 1 2 ($r_b 0 $h_1) arc 4 5 ($r_b 0 $h_2) ); |
|
June 6, 2023, 03:10 |
|
#2 |
Member
Vinzenz Götz
Join Date: Mar 2021
Location: Munich, Germany
Posts: 31
Rep Power: 5 |
so you want an axissymmetric simulation with one wedge cell?
|
|
June 6, 2023, 13:35 |
|
#3 |
New Member
Gabriel Jacobina
Join Date: May 2023
Posts: 2
Rep Power: 0 |
Greetings Vinzmann,
I have already solved the issue. The problem was that I forgot that the order you specify the vertices in the "hex (1 2 3 ...)" statement has to define a right handed local coordinates system as described in [link] The correct order was: hex (0 2 1 0 3 5 4 3) (25 10 10) simpleGrading (1 1 1) |
|
Tags |
cellset, chtmultiregionfoam, wedge |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh]: problem create a wedge geometry | mn14cat | OpenFOAM Meshing & Mesh Conversion | 1 | August 3, 2022 11:34 |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 05:27 |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |