|
[Sponsors] |
[Commercial meshers] Problem when using Pointwise grid with OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 13, 2017, 13:15 |
Problem when using Pointwise grid with OpenFOAM
|
#1 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
Hi,
Previously, I was running a blunt wedge case with BlockMesh. The mesh was created by my colleague. Now I'm trying to draw the same grid in Pointwise and export it to OpenFOAM to use. However, I have problem running it. I have some questions. 1. As shown attached, the grid is structured 2D. Do I have to change it to 3D or unstructured? 2. Based on the boundary condition (BC) shown, I have assigned BC in Pointwise. For my case, the original BC are: For P: dimensions [1 -1 -2 0 0 0 0]; internalField uniform 1; boundaryField { inlet { type fixedValue; value uniform 1; } outlet { type zeroGradient; } bottom { type zeroGradient; //type symmetryPlane; } top { type fixedValue; value uniform 1; } Walls { type zeroGradient; } defaultFaces { type empty; } For T: dimensions [0 0 0 1 0 0 0]; internalField uniform 1; boundaryField { inlet { type fixedValue; value uniform 1; } outlet { type zeroGradient; } bottom { type zeroGradient; //type symmetryPlane; } top { type fixedValue; value uniform 1; } Walls { type zeroGradient; } defaultFaces { type empty; } For U: dimensions [0 1 -1 0 0 0 0]; internalField uniform (5.0 0 0); boundaryField { inlet { type fixedValue; value uniform (5.0 0 0); } outlet { type zeroGradient; } bottom { type slip; } top { type fixedValue; value uniform (5.0 0 0); } Walls { type slip; } defaultFaces { type empty; } However, running rhoCentralFoam, I got the error: --> FOAM Warning : From function polyBoundaryMesh::groupPatchIDs() const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 461 Patch wall specifies a group wall which is also a patch name. This might give problems later on. Reading field U --> FOAM FATAL IO ERROR: inconsistent patch and patchField types for patch type symmetryPlane and patchField type slip file: /home/users/nus/tsltaywb/OpenFOAM/tsltaywb-3.0.1/run/Testcases/blunt_wedge/0/U.boundaryField.slip from line 37 to line 37. From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&) in file /app/OpenFOAM-3.0.1/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 172. FOAM exiting I guess the error is due to my BC. So how should I set my BC to make it work? Thanks! |
|
May 13, 2017, 13:32 |
|
#2 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
Just realised by checking the old polyMesh files that I should be using patch instead... It's running.... hopefully with the correct result :-)
|
|
May 15, 2017, 18:26 |
|
#3 |
New Member
jahangir
Join Date: Jul 2016
Posts: 1
Rep Power: 0 |
Hi quarkz
For analysing the 2d problem in OpenFoam you must use 3d mesh ( just extrude your grid in z direction by one cell). For the faces you have in z direction you must use empty as boundary condition. Sent from my MotoG3 using CFD Online Forum mobile app |
|
May 16, 2017, 22:50 |
|
#4 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
Thanks jahangir for the tip. However, Pointwise automatically creates the front/back BC so I'm able to import into OpenFOAM. Maybe the newer Pointwise version has this capability.
|
|
April 17, 2020, 17:57 |
I have the same issue
|
#5 |
New Member
Radhe
Join Date: Feb 2015
Posts: 11
Rep Power: 11 |
sir i have similar geometry and i am facing the same issue.
In hy2foam tutorial problem (blunt cone), there is no symmetry BC in the boundary file rather there are wedge as BC for 2 planes. But for pointwise we have to define one bc as symmetry plane and addiionally i have to define wedge on two bc's. How did you resolved the issue? Thanks in advance. here is the boundary file attached Code:
FoamFile { version 2.0; format ascii; class polyBoundaryMesh; location "constant/polyMesh"; object boundary; } 6 ( FARFIELD { type patch; nFaces 60; startFace 7080; } OUTLET { type patch; nFaces 60; startFace 7140; } SYMM { type symmetryPlane; nFaces 60; startFace 7200; } wall { type wall; nFaces 60; startFace 7260; } Base { type wedge; nFaces 3600; startFace 7320; } Top { type wedge; nFaces 3600; startFace 10920; } ) |
|
April 18, 2020, 00:10 |
|
#6 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19 |
In newer Pointwise ver, you just do everything in 2D and then export it to OF. PW will convert it to 3D for OF use. no need to extrude.
However, what you want should be something axis symmetric. In that case, you will need to rotate your 2d plane by about +- 2.5deg and assign the 2 sides as wedge. You may need to shift your body upwards by abt 1% before you do your rotation (assuming at the origin). Else, PW will complain during your OF export that it failed as it has created some geometry not accepted by OF. Hope it helps. |
|
April 19, 2020, 23:27 |
|
#7 | |
New Member
Radhe
Join Date: Feb 2015
Posts: 11
Rep Power: 11 |
Quote:
I am interested in the stagnation point and the above mentioned approach will effect that property as stagnation point will be about axisymmetric axis. I checked online about extrude2dMesh option in openfoam but was unable to implement it. Last edited by tanmay singhal; April 21, 2020 at 13:05. |
||
June 16, 2020, 05:05 |
|
#8 |
New Member
Laurens
Join Date: Jun 2020
Location: Antwerp, Belgium
Posts: 6
Rep Power: 6 |
Something that helped for me was using: renumberMesh - overwrite
after importing my exported pointwise files into the polyMesh folder. |
|
July 30, 2021, 03:57 |
|
#9 | |
New Member
Bruce Ye
Join Date: Jul 2021
Posts: 1
Rep Power: 0 |
Hi, I am performing hy2Foam as well and I met with the same problem as you. I am trying to perform pointwise to generate the wedge mesh but when I checkmesh, it comes out to report 1 failed mesh check, and it is said "Number of edges not aligned with or perpendicular to non-empty direction". Have you figured out the way to generate wedge mesh by pointwise? I would appreciate it a lot if u could help me solve such problem.
Quote:
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
On grid independent solution for pulsatile flow | David | FLUENT | 5 | March 25, 2022 04:33 |
[Other] Openfoam for windows 16.02 [CFD support] -problem with paraview | ditmeyer | OpenFOAM Installation | 3 | May 15, 2017 13:04 |
Can OpenFoam solve this problem? | salazardetroya | OpenFOAM Running, Solving & CFD | 1 | July 29, 2015 23:34 |
[ICEM] Quality problem adjusting grid with y+ | earth07 | ANSYS Meshing & Geometry | 1 | July 24, 2013 12:07 |
Combustion Convergence problems | Art Stretton | Phoenics | 5 | April 2, 2002 06:59 |