Time varying velocity inlet boundary conditions using TableFile.H
1 Attachment(s)
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 Quote:
Code:
Templated table container data entry where data is read from file. Quote:
Quote:
Quote:
|
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! |
Hi,
Maybe you should provide example case, as this format of dataFile: Code:
( |
Solved
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:
( Thanks, Pruthvi. |
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: |
All times are GMT -4. The time now is 18:09. |