|
[Sponsors] |
[blockMesh] Changing Inlet Outlet Surfaces without Re-meshing |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 19, 2020, 14:26 |
Changing Inlet Outlet Surfaces without Re-meshing
|
#1 |
New Member
Nian
Join Date: Jun 2019
Posts: 15
Rep Power: 7 |
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 |
|
February 19, 2020, 18:40 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
You can manually change boundary types in constant/polyMesh/boundary file.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 19, 2020, 19:21 |
|
#3 | |
New Member
Nian
Join Date: Jun 2019
Posts: 15
Rep Power: 7 |
Quote:
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; } ) 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; } ) Nian |
||
February 20, 2020, 12:38 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
Tags |
blockmeshdict, boundaries definition, inlet boundary |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so | immortality | OpenFOAM Pre-Processing | 15 | April 7, 2024 13:35 |
Reversed flow using pressure inlet and outlet? | here_for_help | FLUENT | 0 | September 28, 2018 16:20 |
Outlet BC for pipe flow with oscillatory inlet | EmiS | FLUENT | 1 | August 14, 2015 14:59 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
steam flow in a pipe driven by a pressure gradient between inlet and outlet | SalvoCalvo | COMSOL | 0 | March 11, 2010 07:52 |