|
[Sponsors] |
[blockMesh] Problems in creating a wedge type mesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 6, 2015, 09:25 |
|
#21 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
Hi Gareth,
perhaps a bit late, but (7 8 17 16) is no proper defined face. 7 and 16, and 8 and 17 define the same points in your blockMesh. greetings Alex |
|
May 13, 2015, 07:28 |
|
#22 |
New Member
Adkar
Join Date: Apr 2015
Posts: 18
Rep Power: 11 |
If you want 2d mesh, set the same points again like follows.
vertices ( (0 0 0) (1 0 0) (1 1 0) (0 1 0) (0 0 0) (1 0 0) (1 1 0) (0 1 0) ); |
|
May 14, 2015, 06:10 |
|
#23 |
Member
Alexander Bartel
Join Date: Feb 2015
Location: Germany
Posts: 97
Rep Power: 11 |
Hi Adkar,
I don't know where you are referring to... But your idea won't work. If you want to set up a two-dimensional case you still have to make your mesh three-dimensional, but define the front and back boundaries as empty boundaries. Just have a look at the cavity tutorial /incompressible/icofoam/cavity regards Alex
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
October 16, 2015, 04:28 |
|
#24 |
New Member
Adkar
Join Date: Apr 2015
Posts: 18
Rep Power: 11 |
Yeah..i was wrong. Sorry for the inconvinence.
Last edited by adkar; October 20, 2015 at 06:59. |
|
November 2, 2015, 10:58 |
Negative pyramid volume
|
#25 |
Member
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 14 |
Hello everyone,
I made my own axi-symmetric mesh in 2D following the steps listed in this page. I get these warnings ... Code:
--> FOAM Warning : From function cellModel::mag(const labelList&, const pointField&) in file meshes/meshShapes/cellModel/cellModel.C at line 128 zero or negative pyramid volume: -1.13485e-07 for face 1 --> FOAM Warning : From function cellModel::mag(const labelList&, const pointField&) in file meshes/meshShapes/cellModel/cellModel.C at line 128 zero or negative pyramid volume: -5.67424e-08 for face 2 --> FOAM Warning : From function cellModel::mag(const labelList&, const pointField&) in file meshes/meshShapes/cellModel/cellModel.C at line 128 zero or negative pyramid volume: -5.67424e-08 for face 3 --> FOAM Warning : From function cellModel::mag(const labelList&, const pointField&) in file meshes/meshShapes/cellModel/cellModel.C at line 128 zero or negative pyramid volume: -5.67424e-08 for face 4 --> FOAM Warning : From function cellModel::mag(const labelList&, const pointField&) in file meshes/meshShapes/cellModel/cellModel.C at line 128 zero or negative pyramid volume: -5.67424e-08 for face 5 --> FOAM Warning : From function blockMesh::createTopology(IOdictionary&) in file blockMesh/blockMeshTopology.C at line 255 negative volume block : 0, probably defined inside-out here is the blockMeshDict file Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1.0; // a- 0.024976 //b- 0.0010905 vertices ( (0 0 0) // pt_0 (0.024976 0 0.0010905) // pt_1 (0.024976 0.0125 0.0010905) // pt_2 (0 0.0125 0) // pt_3 (0.024976 0 -0.0010905) // pt_4 (0.024976 0.0125 -0.0010905) // pt_5 ); blocks ( hex (0 4 1 0 3 5 2 3) (20 1 20) simpleGrading (1 1 1) // hex (0 1 4 0 3 2 5 3) (20 20 1) simpleGrading (1 1 1) ); edges ( ); boundary ( front { type wedge; faces ( (0 1 2 3) ); } back { type wedge; faces ( (0 3 5 4) ); } right { type wall; faces ( (1 4 5 2) ); } bottom { type wall; faces ( (0 4 1 0) ); } top { type wall; faces ( (3 5 2 3) ); } axis { type empty; faces ( (0 3 3 0) ); } ); mergePatchPairs ( ); // ************************************************************************* //
__________________
Thanks and Regards Vignesh |
|
November 2, 2015, 11:56 |
|
#26 |
Senior Member
|
Hi,
In general negative volume of cells is a result of wrong vertex numbering. If you change Code:
hex (0 4 1 0 3 5 2 3) (20 1 20) simpleGrading (1 1 1) Code:
hex (3 5 2 3 0 4 1 0) (20 1 20) simpleGrading (1 1 1) |
|
November 3, 2015, 03:06 |
|
#27 |
Member
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 14 |
Thank you alexeym !!
__________________
Thanks and Regards Vignesh |
|
November 3, 2015, 12:27 |
Automating wedge points using m4 programming
|
#28 |
Senior Member
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 11 |
Hello everyone,
I have written a very simple script in m4 to create the points of the wedge: Code:
divert(-1) define([wedge], [ifelse(calc(([$2]==0)),1, [($1 0 0)], [($1 calc($2*cos(2.5*pi/180)) calc($2*sin(2.5*pi/180))) ($1 calc($2*cos(-2.5*pi/180)) calc($2*sin(-2.5*pi/180)))])])dnl divert Code:
wedge(1,2) -> two points (1 1.99809837241304 0.0871945764388748) (1 1.99809837241304 -0.0871945764388748) wedge(1,0) -> only one point returned if point is on x-axis (1 0 0) |
|
August 3, 2019, 08:59 |
|
#29 |
Member
Sourav Mandal
Join Date: Jul 2019
Posts: 55
Rep Power: 7 |
Thanks https://www.cfd-online.com/Forums/members/trt.html, very much for sharing your code! Was pulling my hair to get a simple example go wedge geometry until I found this...
Last edited by sourav90; August 3, 2019 at 09:01. Reason: forgot quoting. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] 3-D Mesh in a cylinder | Nikunj.R | OpenFOAM Meshing & Mesh Conversion | 32 | July 9, 2023 14:22 |
[Commercial meshers] Problems with ANSYS mesh conversion | tdog | OpenFOAM Meshing & Mesh Conversion | 1 | March 31, 2016 18:36 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Problem with geometry - concentric cylinders | Rhoddwen | OpenFOAM Running, Solving & CFD | 0 | December 15, 2014 10:22 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |