|
[Sponsors] |
Problem in using fixedProfile boundary condition for unstructured grid |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16 ![]() |
Hello all,
I am trying to simulate a turbulent pipe flow and found that the length of the pipe is not adequate for the fully developed flow, thus wanted to use the outlet slice of this domain to act as the inlet for my simulations to save my simulation time (also, I guess this could be assumed to be a periodic pipe case simulation). I found some helpful links from the CFD Online community and was trying to use the fixedProfile type as my inlet boundary condition. But when I slice the domain close to outlet, I get a csv file as a function of x and y (assuming the streamwise flow direction in Z). The inlet BC looks like: Code:
inlet { // type fixedValue; // value uniform ( 0 0 18.8 ); type fixedProfile; profile csvFile; profileCoeffs { nHeaderLine 1; // number of header lines refColumn 0; // reference column index componentColumns (1 2 3); // component column indices separator ","; // optional (defaults to ",") mergeSeparators 0; // merge multiple separators file "uvelocity_z0.024.csv"; // name of csv data file outOfBounds clamp; // optional out-of-bounds handling interpolationScheme linear; // optional interpolation scheme } direction (1 1 0); origin 0; } Code:
--> FOAM FATAL ERROR: out-of-order value: 0.00070197 at index 1 From function void Foam::Function1Types::TableBase<Type>::check() const [with Type = Foam::Vector<double>] in file lnInclude/TableBase.C at line 129. FOAM exiting Last edited by chandra shekhar pant; February 7, 2022 at 05:33. Reason: Missplet subject line |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16 ![]() |
After a bit of struggle I found a way to work, maybe useful to someone:
1. Using the paraview: take the slice in xy plane (Z normal in paraview) at close to exit (I took at z=0.024, the domain in z is 0.025 ) assuming the flow in z direction. 2. Save the data as: File -> Save Data. While saving the data, inside the Field Association - select Cell Data instead of Point Data (which is default). This is because while importing the data into the OpenFOAM it requires the Cell Data instead of Point Data. This is the only important point that has to be taken into consideration. 3. Now the boundary condition used for different parameters are: Code:
type fixedValue; value nonuniform List<vector> ( ); Code:
type fixedValue; value nonuniform List<scalar> ( ); Code:
awk 5. Specifically used Code:
awk '{print "("$0}' u.dat > u1.dat Code:
'{print $0")"}' u1.dat > u2.dat 6. After the file is ready copy the entries of the file u2.dat inside the boundary condition for U : Code:
value nonuniform List<vector> ( (0.2 0.2 0.4) (0.6 0.8 0.1) ...... ... ); |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
On grid independent solution for pulsatile flow | David | FLUENT | 5 | March 25, 2022 03:33 |
cgns grid problem | praveen | SU2 | 20 | March 10, 2014 14:09 |
Grid Independence problem | immortality | OpenFOAM Running, Solving & CFD | 6 | May 28, 2013 18:12 |
Re: Convergence problem for refined grid | CFD_Novice | Main CFD Forum | 13 | February 17, 2008 22:56 |
nonstaggered grid problem | Zhi-Xing Yu | Main CFD Forum | 7 | August 26, 1998 13:22 |