|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Ignacio Sarmiento
Join Date: Jul 2018
Posts: 8
Rep Power: 8 ![]() |
There is a boundary condition called oscillatingFixedValue, there is a tutorial about it too, using this bc you can assign time varying amplitude and frequency, but if you try to assign both as:
inlet { type oscillatingFixedValue; amplitude tableFile; tableFileCoeffs { fileName "$FOAM_CASE/a.data"; } frequency tableFile; tableFileCoeffs { fileName "$FOAM_CASE/f.data"; } } OpenFoam doesn't recognize both at the same time, and only recognize the last tableFileCoeffs so in the next time step the output says: inlet { type oscillatingFixedValue; value uniform (1.10955 0 0); refValue uniform (1 0 0); offset (0 0 0); amplitude tableFile; tableFileCoeffs { fileName "$FOAM_CASE/f.data"; } frequency tableFile; tableFileCoeffs { fileName "$FOAM_CASE/f.data"; } } Am I doing something wrong? I know I could just write several tables, but I'm working in a boundary with a lot o data, and groovyBC doesn't seems to have problems using several tableFiles, we can't do the same? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Ignacio Sarmiento
Join Date: Jul 2018
Posts: 8
Rep Power: 8 ![]() |
I just realized the problem exists only in old versions of OP~
In the old versions it says: <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 } and in the new ones its like: <entryName> tableFile; <entryName>Coeffs { fileName dataFile; // name of data file outOfBounds clamp; // optional out-of-bounds handling interpolationScheme linear; // optional interpolation method } at somepoint they realized~ my bad |
|
![]() |
![]() |
![]() |
Tags |
data entry, oscillatingfixedvalue, tablefile |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
reading timeseries into the solver-Problem with using dataEntry | sina.s | OpenFOAM Running, Solving & CFD | 0 | March 17, 2016 04:30 |
volumetricFlowRate tableFile | fengjq | OpenFOAM Running, Solving & CFD | 2 | November 6, 2015 09:08 |
import tableFile to OF | kpax | OpenFOAM Programming & Development | 2 | October 8, 2012 06:49 |