CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

reading timeseries into the solver-Problem with using dataEntry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2016, 05:30
Default reading timeseries into the solver-Problem with using dataEntry
  #1
New Member
 
Sina Saremi
Join Date: May 2011
Location: Copenhagen, Denmark
Posts: 5
Rep Power: 15
sina.s is on a distinguished road
Dear all,

I am trying to use dataEntry for reading text file timeseries into my solver.
Following what is written in the code and looking into similar applications, I have managed to almost make it work...
My only remaining problem, which I couldnt find a solution for, is:

I have several variables which should be read from the text files, which I define them in constant/dataEntryProperties, as you see below.
However, when there are more than one entry in my dataEntryProperties, it tends always to go and read the file in the last entry no matter what!
I guess there is something wrong in the way I have written the dataEntryProperties, maybe missing some ";" or "(" somewhere?

I woul be glad if someone can give me some hints on this, as I couldnt find any such examples anywhere else...

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dataEntryProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //



Qs_spill tableFile;
tableFileCoeffs
{
dimensions [ 0 3 -1 0 0 0 0 ]; // optional dimensions
fileName "Qs_spill"; // name of data file
outOfBounds clamp; // optional out-of-bounds handling
interpolationScheme linear; // optional interpolation method

};

Xb_t tableFile;
tableFileCoeffs
{
dimensions [ 0 1 0 0 0 0 0 ]; // optional dimensions
fileName "x_coordinate.txt"; // name of data file
outOfBounds clamp; // optional out-of-bounds handling
interpolationScheme linear; // optional interpolation method

};

U_timeseries tableFile;
tableFileCoeffs
{
dimensions [ 0 1 -1 0 0 0 0 ]; // optional dimensions
fileName "currentVectors.txt"; // name of data file
outOfBounds clamp; // optional out-of-bounds handling
interpolationScheme linear; // optional interpolation method

};

Yb_t tableFile;
tableFileCoeffs
{
dimensions [ 0 1 0 0 0 0 0 ]; // optional dimensions
fileName "y_coordinate.txt"; // name of data file
outOfBounds clamp; // optional out-of-bounds handling
interpolationScheme linear; // optional interpolation method
};




// ************************************************** *********************** //
sina.s is offline   Reply With Quote

Reply


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
Problem with ldumatrix solver yfjok22 OpenFOAM Programming & Development 1 January 6, 2014 00:48
Problem with compiling new solver palazi88 OpenFOAM Programming & Development 2 December 24, 2013 20:52
Solver problem in Oscillating Plate tutorial vovogoal CFX 1 November 22, 2011 10:54
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 18:51


All times are GMT -4. The time now is 04:49.