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

How to assign flow direction for fixedProfile inlet Boundary condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2021, 03:32
Default How to assign flow direction for fixedProfile inlet Boundary condition
  #1
New Member
 
Lakshman R
Join Date: Apr 2017
Posts: 16
Rep Power: 7
lachuktr is on a distinguished road
Hello,

I am currently simulating atmospheric flow in Openfoam. I have to assign inlet velocity using an equation that varies with height z. I have created a CSV file (placed inside the 0 folder) for the data regarding the inlet velocity based on that equation.

Now I have to use this data using fixedProfile boundary condition. But the flow direction is 60 degrees anticlockwise to x-axis. while using fixedProfile BC, I am not able to change the flow direction. (flow direction is in x-direction default)


The inlet velocity boundary condition I used is as follows:

inlet
{

type fixedProfile;
profile csvFile;

profileCoeffs
{

nHeaderLine 0; // Number of header lines

refColumn 0; // Reference column index

componentColumns (1 2 3); // Component column indices

separator ","; // Optional (defaults to ",")

mergeSeparators no; // Merge multiple separators

file "0/uprofile.csv"; // name of csv data file


// outOfBounds clamp; // Optional out-of-bounds handling
// interpolationScheme linear; // Optional interpolation scheme
}


direction (0 0 1);


origin 0;
}


I am able to change the flow direction using atmBoundaryLayerInletVelocity boundary condition, but there I cannot use the custom values of velocity which I required (saved in CSV file)

kindly help.

Last edited by lachuktr; August 2, 2021 at 08:30.
lachuktr is offline   Reply With Quote

Old   August 4, 2021, 20:47
Default
  #2
New Member
 
Lakshman R
Join Date: Apr 2017
Posts: 16
Rep Power: 7
lachuktr is on a distinguished road
any help ...... ?
lachuktr is offline   Reply With Quote

Old   August 29, 2021, 10:29
Default
  #3
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 41
Rep Power: 6
Rvadrabade is on a distinguished road
Hi,

Can you share a little more information like solver you are using and some pictures of domain demonstrating inlet and other BCs?

Hint
1. Try out geometry/mesh transformation, however consider as last option
2. Why don't you create CSV with components of X velocity. If I am correct, you can set x-vel =U*cos60 and y-vel=U*sin60 , z-vel = 0
Rvadrabade is offline   Reply With Quote

Reply

Tags
atmboundarylayerinlet, fixedprofile, flow direction.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
ERROR: Flow direction on the boundaries must not be tangential to the boundary. turbomax CFX 2 August 6, 2015 11:05
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00


All times are GMT -4. The time now is 01:55.