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

Profile Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2018, 17:22
Default Profile Boundary Condition
  #1
Member
 
Join Date: Mar 2016
Posts: 73
Rep Power: 10
sufjanst is on a distinguished road
Hey guys,

I am using Openfoam 5.0 and I calculated a flowfield.
I want to use the data from a plane as a boundary condition for another case (the position is the same). I wanted to use "fixedProfile" as a boundary condition associated to a csv file.
I can write out a .csv file with paraview with all the points and data but it won't work as a boundary condition. I also tried to write out a .csv file with sampleDict but it didn't work either (I only got vtk files).


B/C;
INTERFACE
{
type fixedProfile;
profile csvFile;

profileCoeffs
{
nHeaderLine 1;
refColumn 0;
componentColumns (1 2 3);
separator ",";
mergeSeparators no;
file "0/UProfile.csv";
outOfBounds clamp;
interpolationScheme linear;
}
direction (0 0 1);
origin 0;
}

My .csv file looks like this:
-8.64321e-01,-1.34479e+00,1.05265e+00,0
-1.16852e-02,-1.70701e-02,1.57082e-02,0
-1.16852e-02,-1.70701e-02,1.57082e-02,0
0.00000e+00,0.00000e+00,0.00000e+00,0
0.00000e+00,0.00000e+00,0.00000e+00,0
-6.73941e-05,3.49976e-03,1.63564e-03,0
-6.73941e-05,3.49976e-03,1.63564e-03,0
-1.46460e-02,-1.81075e-02,1.33139e-02,0

I get the error "out-of-order value: -0.116852 at index 2"

Does anyone know how to fix this? How to I implement the coordinates to the csv file, so that openfoam "knows" which value belongs to which coordinate?

Thank you very much
sufjanst
sufjanst is offline   Reply With Quote

Old   September 28, 2018, 21:04
Default
  #2
Member
 
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11
ykanani is on a distinguished road
Hi,

I have not used this BC myself. But please take a look at the following link where the boundary condition is proposed and sample tutorials are available for download (includes csv file)

https://bugs.openfoam.org/view.php?id=1922

Yousef
ykanani is offline   Reply With Quote

Old   September 11, 2020, 12:15
Default Flow velocity mapped in relation to surface instead of coordinate axis
  #3
Member
 
Jan Majcher
Join Date: Nov 2018
Posts: 39
Rep Power: 8
MaySea is on a distinguished road
Do you know if there is a way to introduce a logaritmic velocity profile in relation to a face's lowest Z coordinate? I have a 3D terrain topography as a base of the mesh, and I want the flow to start at e.g. 0.5 m/s 1 m above the surface. Thanks
MaySea is offline   Reply With Quote

Reply


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
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 11:20
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Velocity profile boundary condition Tuca FLOW-3D 1 April 23, 2013 13:02
velocity profile inlet boundary condition question Lcw FLUENT 3 August 3, 2012 06:53


All times are GMT -4. The time now is 21:39.