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

[Commercial meshers] Problem when using Pointwise grid with OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree5Likes
  • 2 Post By quarkz
  • 1 Post By quarkz
  • 2 Post By LVH_CFD

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2017, 13:15
Default Problem when using Pointwise grid with OpenFOAM
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
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!
Attached Images
File Type: png blunt_wedge.png (56.1 KB, 73 views)
File Type: jpg blunt_wedge_bc.JPG (18.6 KB, 59 views)
quarkz is offline   Reply With Quote

Old   May 13, 2017, 13:32
Default
  #2
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Just realised by checking the old polyMesh files that I should be using patch instead... It's running.... hopefully with the correct result :-)
quarkz is offline   Reply With Quote

Old   May 15, 2017, 18:26
Default
  #3
New Member
 
jahangir
Join Date: Jul 2016
Posts: 1
Rep Power: 0
jahangir is on a distinguished road
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
jahangir is offline   Reply With Quote

Old   May 16, 2017, 22:50
Default
  #4
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
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.
quarkz is offline   Reply With Quote

Old   April 17, 2020, 17:57
Default I have the same issue
  #5
New Member
 
Radhe
Join Date: Feb 2015
Posts: 11
Rep Power: 11
tanmay singhal is on a distinguished road
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;
    }
)
tanmay singhal is offline   Reply With Quote

Old   April 18, 2020, 00:10
Default
  #6
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
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.
tonnykz likes this.
quarkz is offline   Reply With Quote

Old   April 19, 2020, 23:27
Default
  #7
New Member
 
Radhe
Join Date: Feb 2015
Posts: 11
Rep Power: 11
tanmay singhal is on a distinguished road
Quote:
Originally Posted by quarkz View Post
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.

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.
tanmay singhal is offline   Reply With Quote

Old   June 16, 2020, 05:05
Default
  #8
New Member
 
Laurens
Join Date: Jun 2020
Location: Antwerp, Belgium
Posts: 6
Rep Power: 6
LVH_CFD is on a distinguished road
Something that helped for me was using: renumberMesh - overwrite

after importing my exported pointwise files into the polyMesh folder.
tonnykz and Haitham Osman CFD like this.
LVH_CFD is offline   Reply With Quote

Old   July 30, 2021, 03:57
Smile
  #9
New Member
 
Bruce Ye
Join Date: Jul 2021
Posts: 1
Rep Power: 0
BruceYe is on a distinguished road
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:
Originally Posted by tanmay singhal View Post
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;
    }
)
BruceYe is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 21:49.