|
[Sponsors] |
May 24, 2016, 10:17 |
Two inlet velocity profile
|
#1 |
Member
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 9 |
Hi,
Wondering if it is possible to set up 2 independent velocity boundary conditions. For a simple case with blockMesh of: vertices ( (0 0 0) //0 (2 0 0) //1 (2 2 0) //2 (0 2 0) //3 (0 0 2) //4 (2 0 2) //5 (2 2 2) //6 (0 2 2) //7 ); Usually the inlet will be defined in one patch of say (0 4 7 3). Is it possible to create an addition patch for a different velocity profile without causing an error? For example, I tried with the addition of vertices: vertices ( (0 0 0) //0 (2 0 0) //1 (2 2 0) //2 (0 2 0) //3 (0 0 2) //4 (2 0 2) //5 (2 2 2) //6 (0 2 2) //7 (2 0 1) //8 (0 0 1) //9 ); And in the blockMeshDict: the block section: blocks ( hex (0 1 2 3 4 5 6 7 8 9) (10 10 10) simpleGrading (1 1 1) ); the boundary for the inlet will change: inlet1 { type patch; faces ( (0 4 8 9) ); } inlet2 { type patch; faces ( (9 8 7 3) ); } This is the general idea I had, does it even make sense? The problem is, when I tried blockMesh, I encountered an error saying: --> FOAM FATAL ERROR: face 0 in patch 0 does not have neighbour cell face: 4(0 4 8 9) I am also open to other suggestions regarding the setting up of two independent inlet boundary condition. |
|
June 13, 2016, 02:57 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
well, you have two options:
1- one patch two profiles (using groovyBC) 2-create two patches: for creating two patches, you need to define two blocks. It is impossible to divide one face into two patches with one block
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
Tags |
independent boundary |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Inlet velocity profile for turbulent pipe flow using swak4Foam | zordiack | OpenFOAM Community Contributions | 5 | February 23, 2016 01:52 |
Setting velocity profile at the inlet using codedFixedValue | CTR | OpenFOAM Pre-Processing | 1 | May 20, 2014 12:01 |
extracting outlet velocity profile from one case to another case's inlet | tonggysun | OpenFOAM | 2 | September 13, 2013 04:19 |
Velocity profile at inlet | siw | CFX | 2 | May 3, 2012 09:30 |
Export & Import Velocity profile as Inlet | eRzBeNgEl | STAR-CCM+ | 6 | March 26, 2012 05:16 |