Skip to content
Snippets Groups Projects
Commit f8c6cfe0 authored by Andrew Heather's avatar Andrew Heather
Browse files

added construct by components

parent f02101b6
No related merge requests found
......@@ -67,11 +67,25 @@ Foam::interpolationTable<Type>::interpolationTable()
template<class Type>
Foam::interpolationTable<Type>::interpolationTable(const fileName& fn)
Foam::interpolationTable<Type>::interpolationTable
(
const List<Tuple2<scalar, Type> >& values,
const boundsHandling bounds,
const fileName& fName
)
:
List<Tuple2<scalar, Type> >(values),
boundsHandling_(bounds),
fileName_(fName)
{}
template<class Type>
Foam::interpolationTable<Type>::interpolationTable(const fileName& fName)
:
List<Tuple2<scalar, Type> >(),
boundsHandling_(interpolationTable::WARN),
fileName_(fn)
fileName_(fName)
{
readTable();
}
......
......@@ -102,8 +102,16 @@ public:
//- Construct null
interpolationTable();
//- Construct from components
interpolationTable
(
const List<Tuple2<scalar, Type> >& values,
const boundsHandling bounds,
const fileName& fName
);
//- Construct given the name of the file containing the table of data
interpolationTable(const fileName& fn);
interpolationTable(const fileName& fName);
//- Construct by reading the fileName and boundsHandling from dictionary
// and read the table from that file.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment