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

[blockMesh] Changing Inlet Outlet Surfaces without Re-meshing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2020, 13:26
Smile Changing Inlet Outlet Surfaces without Re-meshing
  #1
New Member
 
Nian
Join Date: Jun 2019
Posts: 15
Rep Power: 6
noodleluvmay is on a distinguished road
Hello,

Might be a simple question, but would there be any ways to change the surfaces that are defined as inlet or outlet after all steps of meshing (snappyHexMesh)?

As far as I understand, blockMesh is where you define the boundary conditions to the faces of a domain (inlet, outlet, walls... etc).

So far I have defined inlet as left face of a box domain, outlet as right side face of the domain, and have flow normal to the inlet face.

But now because I would like to change the direction of inlet airflow, coming into the flow domain at a slight angle from top left, so I would have to change inlet to left & top faces; outlet to right & bottom faces.

When I command to run blockMesh again, it seems to clear mesh and just leave a blockMesh at the end so that I would have to run snappyHexMesh again (which takes a while for multiple cases), so I was wondering if there's any ways to bypass this?

Would really appreciate your help!
Thanks!
Nian
noodleluvmay is offline   Reply With Quote

Old   February 19, 2020, 17:40
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
You can manually change boundary types in constant/polyMesh/boundary file.
HPE is offline   Reply With Quote

Old   February 19, 2020, 18:21
Default
  #3
New Member
 
Nian
Join Date: Jun 2019
Posts: 15
Rep Power: 6
noodleluvmay is on a distinguished road
Quote:
Originally Posted by HPE View Post
You can manually change boundary types in constant/polyMesh/boundary file.
Hi HPE,

Thank you for the reply! I have indeed checked the 'boundary' file in polymesh, which currently looks something like this, and I am wanting to basically make "upperWall" inlet, and "lowerWall" outlet:

Code:
6
(
    frontAndBack
    {
        type            patch;
        nFaces          21434;
        startFace       4626665;
    }
    inlet
    {
        type            patch;
        nFaces          20;
        startFace       4648099;
    }
    outlet
    {
        type            patch;
        nFaces          20;
        startFace       4648119;
    }
    lowerWall
    {
        type            wall;
        inGroups        1(wall);
        nFaces          44;
        startFace       4648139;
    }
    upperWall
    {
        type            patch;
        nFaces          44;
        startFace       4648183;
    }
    surface0
    {
        type            wall;
        inGroups        
2
(
airfoilGroup
wall
)
;
        nFaces          78336;
        startFace       4648227;
    }
)
I might not be understanding you fully in terms of "changing the boundary type", would it make sense for me to change the above to below by making "lowerWall" & "upperWall" both type "patch", and rename both of them to "inlet" and "outlet"?

Code:
6
(
    frontAndBack
    {
        type            patch;
        nFaces          21434;
        startFace       4626665;
    }
    inlet
    {
        type            patch;
        nFaces          20;
        startFace       4648099;
    }
    outlet
    {
        type            patch;
        nFaces          20;
        startFace       4648119;
    }
    outlet
    {
        type            patch;
        //inGroups        1(wall);
        nFaces          44;
        startFace       4648139;
    }
    inlet
    {
        type            patch;
        nFaces          44;
        startFace       4648183;
    }
    surface0
    {
        type            wall;
        inGroups        
2
(
airfoilGroup
wall
)
;
        nFaces          78336;
        startFace       4648227;
    }
)
Thanks again for your help!
Nian
noodleluvmay is offline   Reply With Quote

Old   February 20, 2020, 11:38
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Please don't touch `constant/polyMesh`. That is the place you set the main boundary types, but not boundary conditions.

Simply, you need to create `field` files, like `U`, under `0` directory. You can modify the boundary conditions thereat.
HPE is offline   Reply With Quote

Reply

Tags
blockmeshdict, boundaries definition, inlet boundary


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
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so immortality OpenFOAM Pre-Processing 15 April 7, 2024 12:35
Reversed flow using pressure inlet and outlet? here_for_help FLUENT 0 September 28, 2018 15:20
Outlet BC for pipe flow with oscillatory inlet EmiS FLUENT 1 August 14, 2015 13:59
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
steam flow in a pipe driven by a pressure gradient between inlet and outlet SalvoCalvo COMSOL 0 March 11, 2010 06:52


All times are GMT -4. The time now is 14:51.