|
[Sponsors] |
Time varying velocity inlet boundary conditions using TableFile.H |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 27, 2015, 16:22 |
Time varying velocity inlet boundary conditions using TableFile.H
|
#1 | ||||
Member
Pruthvi
Join Date: Feb 2014
Posts: 41
Rep Power: 12 |
Hello everybody,
I want to give time varying velocity BC at the inlet, top and bottom as v = v*sin(w*t) for an accelerating frame of reference problem. My topAndBottom BC looks like this: Code:
topAndBottom { type uniformFixedValue; uniformValue tableFile; tableFileCoeffs { dimensions [0 1 -1 0 0]; // optional dimensions fileName "/home/jujja/OpenFOAM/root-2.3.x/run/tutorials/incompressible/pimpleDyMFoam/onemeterplate/coarseMesh/pimpleFoam_heavingframe/data/dataFile"; // name of data file outOfBounds repeat; // optional out-of-bounds handling interpolationScheme linear; // optional interpolation method }; } Quote:
Code:
Templated table container data entry where data is read from file. \verbatim <entryName> tableFile; tableFileCoeffs { dimensions [0 0 1 0 0]; // optional dimensions fileName dataFile; // name of data file outOfBounds clamp; // optional out-of-bounds handling interpolationScheme linear; // optional interpolation method } \endverbatim Items are stored in a list of Tuple2's. First column is always stored as scalar entries. Data is read in the form, e.g. for an entry \<entryName\> that is (scalar, vector): \verbatim ( 0.0 (1 2 3) 1.0 (4 5 6) ); \endverbatim Quote:
Quote:
Quote:
|
|||||
February 27, 2015, 19:38 |
|
#2 |
Senior Member
|
Well, according to that error message it would expect a scalar but you are giving a vector. On the quick run I see two things I would try (I had used flowrates only, which obviously are scalars only) :
1. Try, if it works when putting the vector values in quotation marks, e.g. ( (0 "1 0 0") ); 2. Try if it works to use "uniformFixedVelocity" instead of "uniformFixedValue". I do not know if that BC exists or if it accepts the tableFile-format! Please let us know if these trials work! |
|
February 28, 2015, 03:26 |
|
#3 |
Senior Member
|
Hi,
Maybe you should provide example case, as this format of dataFile: Code:
( (0 (0.025 0.0 0)) (0.1 (0.025 0.00313333083911 0)) (0.2 (0.025 0.00621724717912 0)) (0.3 (0.025 0.00920311381712 0)) ) |
|
March 29, 2015, 01:35 |
Solved
|
#4 |
Member
Pruthvi
Join Date: Feb 2014
Posts: 41
Rep Power: 12 |
Hey guys!
Sorry for the late response. I was able to fix the problem by building the case from scratch. I think the issue was with using the same datafile for more than one boundary. The correct format for the values is this Code:
( ( 0 ( 0.0378 0.0 0 )) ( 0.05 ( 0.0378 0.00012138386402 0 )) ( 0.1 ( 0.0378 0.000242766115999 0 )) . . . . . . ); Thanks, Pruthvi. |
|
November 4, 2015, 01:22 |
|
#5 | |
Member
methma Rajamuni
Join Date: Jul 2015
Location: Victoria, Australia
Posts: 40
Rep Power: 11 |
Quote:
I also want to impose a similar boundary condition (time varying fixed value taken from a table) on the inlet patch. Can you please tell me how your datafile looks like from head to tail. Do we need to put an openFoam header on top or else how should it begin? When I try to do it as you mentioned, got the following error massage when I run the decomposePar Code:
--> FOAM FATAL IO ERROR: Cannot open file. file: /home/rajamunr/OpenFOAM/rajamunr-2.3.1/old/VIVBad/VIVtest-cylinder-2/cylinder-icoFoam/dataofsolid/distable at line 1. From function TableFile<Type>::TableFile(const word&, const dictionary&) in file lnInclude/TableFile.C at line 54. FOAM exiting |
||
Tags |
table data, timevarying |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mesh file for flow over a circular cylinder | Ardalan | Main CFD Forum | 7 | December 15, 2020 14:06 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |