CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to use 2 tableFile?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2018, 15:59
Default How to use 2 tableFile?
  #1
New Member
 
Ignacio Sarmiento
Join Date: Jul 2018
Posts: 8
Rep Power: 5
IgnacioSarmientoINH is on a distinguished road
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?
IgnacioSarmientoINH is offline   Reply With Quote

Old   August 23, 2018, 07:23
Default
  #2
New Member
 
Ignacio Sarmiento
Join Date: Jul 2018
Posts: 8
Rep Power: 5
IgnacioSarmientoINH is on a distinguished road
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
IgnacioSarmientoINH is offline   Reply With Quote

Reply

Tags
data entry, oscillatingfixedvalue, tablefile

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 17:40.