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

AxiSymmetric Cylinder Model - OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2023, 00:14
Default AxiSymmetric Cylinder Model - OpenFoam
  #1
Member
 
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 7
HumanistEngineer is on a distinguished road
Hi,

I try to model the temperature transients for a sensible stratified heat storage tank by use of OpenFoam (see for details: cfd - online: Sensible Stratified Storage Tank).

In order to generate mesh for axisymmetric geometry: I formed a 2D face which was later converted to a solid by applying revolution with 2.5 deg (around axis z) in Salome_Meca 2022.0.0. I built groups as with inlet, outlet, walls, diffuser (obstacle for flow at the inlet and outlet), and wedge_1 and wedge_2 (see the code text given at the bottom for the /constant/polyMesh/boundary). I generated the mesh with various approaches (i.e. by use of GMSH (built-in in Salome Meca), NETGEN) for trial purposes. I, then, export the mesh as Unv file from Salome Meca.

Then I use the code in the Ubuntu Terminal "ideasUnvToFoam" and checked the mesh via "checkMesh". Everything is fine until here!

Whenever I try to run my code via "buoyantFoam", I receive an error given below. Would you please help me to overcome this issue?

Code:
--> FOAM FATAL ERROR: 
wedge wedge_1 plane aligns with a coordinate plane.
    The wedge plane should make a small angle (~2.5deg) with the coordinate plane
    and the pair of wedge planes should be symmetric about the coordinate plane.
    Normal of wedge plane is (0 -1 0) , implied coordinate plane direction is (0 -1 0)

    From function virtual void Foam::wedgePolyPatch::calcGeometry(Foam::PstreamBuffers&)
    in file meshes/polyMesh/polyPatches/constraint/wedge/wedgePolyPatch.C at line 110.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  10
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

6
(
    inlet
    {
        type            patch;
        nFaces          9;
        startFace       191196;
    }
    outlet
    {
        type            patch;
        nFaces          9;
        startFace       191205;
    }
    walls
    {
        type            wall;
        nFaces          1476;
        startFace       191214;
    }
    diffuser
    {
        type            empty;
        nFaces          846;
        startFace       192690;
    }
    wedge_1
    {
        type            wedge;
        nFaces          16854;
        startFace       193536;
    }
    wedge_2
    {
        type            wedge;
        nFaces          16854;
        startFace       210390;
    }
)

// ************************************************************************* //
HumanistEngineer is offline   Reply With Quote

Old   February 17, 2023, 01:28
Default
  #2
Member
 
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 7
HumanistEngineer is on a distinguished road
The tar file for this OpenFoam case can be downloaded from: https://www.mediafire.com/file/9qwpw...ym.tar.gz/file
HumanistEngineer is offline   Reply With Quote

Old   February 17, 2023, 02:19
Smile
  #3
Member
 
Khan
Join Date: Jul 2018
Posts: 45
Rep Power: 7
HumanistEngineer is on a distinguished road
I solved the problem after watching some tutorials: if you have the same issue, you have to apply revolution (Salome Meca - New Entity \ Generation \ Revolution) with 2.5 deg for both directions so, as stated in the error, both of the wedges shall be symmetric about the coordinate plane!
HumanistEngineer 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
[mesh manipulation] 2D Axisymmetric Model in OpenFOAM 4.0 m_ridzon OpenFOAM Meshing & Mesh Conversion 25 March 29, 2023 04:11
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
OpenFOAM: LES turbulence model names Ollie Main CFD Forum 1 April 11, 2011 13:03


All times are GMT -4. The time now is 12:56.