|
[Sponsors] |
September 28, 2018, 17:22 |
Profile Boundary Condition
|
#1 |
Member
Join Date: Mar 2016
Posts: 73
Rep Power: 10 |
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 |
|
September 28, 2018, 21:04 |
|
#2 |
Member
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11 |
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 |
|
September 11, 2020, 12:15 |
Flow velocity mapped in relation to surface instead of coordinate axis
|
#3 |
Member
Jan Majcher
Join Date: Nov 2018
Posts: 39
Rep Power: 8 |
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
|
|
|
|
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 |