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

Two inlet velocity profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2016, 10:17
Default Two inlet velocity profile
  #1
Member
 
Almond Wong
Join Date: May 2016
Posts: 68
Rep Power: 9
BakedAlmonds is on a distinguished road
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.
BakedAlmonds is offline   Reply With Quote

Old   June 13, 2016, 02:57
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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)
nimasam is offline   Reply With Quote

Reply

Tags
independent 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
[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


All times are GMT -4. The time now is 00:44.