|
[Sponsors] |
November 6, 2021, 11:50 |
fixedProfile
|
#1 |
New Member
Mary
Join Date: Sep 2021
Posts: 16
Rep Power: 5 |
Hello,
I would like to set up a custom wind profile at the inlet boundary condition. I've found the type, fixedProfile for OpenFOAM v9: https://cpp.openfoam.org/v9/classFoa...d.html#details Code:
inlet { type fixedProfile; profile table; profileCoeffs { file "UProfile"; format csv; nHeaderLine 0; refColumn 0; componentColumns (1 2 3); separator ","; mergeSeparators no; outOfBounds clamp; interpolationScheme linear; } direction (0 1 0); origin 0; } What I want is to keep the custom inlet wind profile until the outlet. My question is: Once I set up with the fixedProfile at the inlet, does this profile maintain until reaching outlet? Please advise, Thanks in advance! |
|
November 8, 2021, 08:19 |
|
#2 |
Member
Alejandro Valeije
Join Date: Nov 2014
Location: Spain
Posts: 52
Rep Power: 12 |
Hi,
Without any further research, I would say no. The profile will develop according to the rest of the boundary conditions you set in the case. If you want to keep it you would have to set your BCs accordingly, using symmetry conditions or fixed values to help it during the calculation Hope it helps. Regards |
|
November 8, 2021, 08:36 |
|
#3 |
New Member
Mary
Join Date: Sep 2021
Posts: 16
Rep Power: 5 |
Thanks for your note, alexvaleije !
What is the symmetry conditions? And, does the fixed vaules mean a codedFixedValue? |
|
November 8, 2021, 09:03 |
|
#4 |
Member
Alejandro Valeije
Join Date: Nov 2014
Location: Spain
Posts: 52
Rep Power: 12 |
In short, symmetry boundary conditions are used in CFD to represent boundaries where the normal gradient of the variable to the surface is 0, and are commonly used for the side walls and sky in external flow simulations, since you want these boundaries to be far from your domain of study to not interact with it (and from for wind condition, it seems that you are running something similar to that)
In openfoam is represented (at least for older versions) with the term "symmetry". As for your question regarding codedFixedValue, I did some some small research, and it seems to be a more developed condition than "fixedValue". The one that I am talking is this: inlet { type fixedValue; value uniform (1 0 0); } where you define a scalar value in the three directions. I imagine that the BC that you are using works similar to this Regards, |
|
July 8, 2024, 16:56 |
|
#5 |
New Member
george
Join Date: Feb 2021
Posts: 16
Rep Power: 5 |
Hi,
I want to provide a temperature profile to a wall belonging to a geometry. I have a CSV file containing temperature data at the face centers of another mesh file. The file format is as follows: x,y,z,T 0.012,1.25,0,1000 I wanted to use the fixedProfile boundary condition for this process, but I did not understand some of the inputs. refColumn: Should this be the column containing the temperature values? componentColumns: Since we are inputting the name of the boundary and this boundary is 2D, isn't it sufficient to use only the x and y components? direction: Along the boundary or perpendicular to the boundary? origin: Origin of what? Origin of the boundary or origin of the geometry? I reviewed the following site but could not find the answers to my questions. I would appreciate your help. https://www.openfoam.com/documentati...8H_source.html Code:
wallcsv { type fixedProfile; profile csvFile; profileCoeffs { format csv; nHeaderLine 0; refColumn 3; // the column that has temperature data? componentColumns (0 1 2); // x and y values of the face centers? // do I need an z? it is a 2D boundary separator ","; mergeSeparators no; file "data.csv"; interpolationScheme linear; // interpolate the data to the face centers? outOfBounds clamp; } direction (0 0 1); // perpendicular to the corresponding boundary origin 0; // origin of what? } Code:
--> FOAM FATAL IO ERROR: (openfoam-2312 patch=240220) componentColumns with 3(0 1 2) does not have the expected length 1 file: 0/wall/T/boundaryField/wallcsv/profileCoeffs at line 38 to 46. From static Foam::labelList Foam::Function1Types::CSV<Type>::getComponentColumns(const Foam::word&, const Foam::dictionary&) [with Type = double; Foam::labelList = Foam::List<int>] in file lnInclude/CSV.C at line 54. FOAM exiting Code:
if (cols.size() != pTraits<Type>::nComponents) { FatalIOErrorInFunction(dict) << name << " with " << cols << " does not have the expected length " << pTraits<Type>::nComponents << nl << exit(FatalIOError); } return cols; g Last edited by scfd; July 8, 2024 at 18:35. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fixedProfile kOmega | MazenDraw | OpenFOAM Running, Solving & CFD | 4 | January 23, 2023 08:54 |
How to assign flow direction for fixedProfile inlet Boundary condition | lachuktr | OpenFOAM | 2 | August 29, 2021 11:29 |
FixedProfile polynomial Boundary Condition - Advice Please | basecase | OpenFOAM Pre-Processing | 0 | May 28, 2021 01:09 |
FixedProfile Boundary condition for wall | bhuvanChennoju | OpenFOAM Running, Solving & CFD | 0 | October 6, 2019 06:54 |
FixedProfile inlet velocity - Multiphase Flow | jozsef_kiraly | OpenFOAM Pre-Processing | 0 | June 20, 2019 11:03 |