Skip to content
Snippets Groups Projects
Commit c4a13897 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

STYLE: minor adjustments for fan tables (#1229)

parent c0e5f77e
Branches
Tags
No related merge requests found
......@@ -62,7 +62,7 @@ class TableBase
{
protected:
// Protected data
// Protected Data
//- Table name
const word name_;
......@@ -93,9 +93,6 @@ protected:
//- Return (demand driven) interpolator
const interpolationWeights& interpolator() const;
private:
//- No copy assignment
void operator=(const TableBase<Type>&) = delete;
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
......@@ -37,12 +37,12 @@ Foam::Function1Types::TableFile<Type>::TableFile
)
:
TableBase<Type>(entryName, dict),
fName_("none")
fName_()
{
dict.readEntry("file", fName_);
fileName expandedFile(fName_);
//IFstream is(expandedFile.expand());
autoPtr<ISstream> isPtr(fileHandler().NewIFstream(expandedFile.expand()));
ISstream& is = isPtr();
......@@ -66,13 +66,6 @@ Foam::Function1Types::TableFile<Type>::TableFile(const TableFile<Type>& tbl)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template<class Type>
Foam::Function1Types::TableFile<Type>::~TableFile()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011-2017 OpenFOAM Foundation
......@@ -27,7 +27,7 @@ Class
Foam::Function1Types::TableFile
Description
Templated table container function where data is read from file.
Templated table container function where data are read from file.
Usage:
\verbatim
......@@ -40,8 +40,8 @@ Description
}
\endverbatim
Data is stored as a list of Tuple2's. First column is always stored as
scalar entries. Data is read in the form, e.g. for an entry \<entryName\>
Data are stored as a list of Tuple2's. First column is always stored as
scalar entries. Data are read in the form, e.g. for an entry \<entryName\>
that is (scalar, vector):
\verbatim
(
......@@ -77,7 +77,7 @@ class TableFile
:
public TableBase<Type>
{
// Private data
// Private Data
//- File name for csv table (optional)
fileName fName_;
......@@ -97,7 +97,7 @@ public:
// Constructors
//- Construct from entry name and Istream
//- Construct from entry name and "file" found in dictionary
TableFile(const word& entryName, const dictionary& dict);
//- Copy constructor
......@@ -105,7 +105,7 @@ public:
//- Destructor
virtual ~TableFile();
virtual ~TableFile() = default;
// I/O
......
......@@ -87,7 +87,7 @@ Usage
componentColumns 1(1);
separator ",";
mergeSeparators no;
file "<constant>/pressureVsU";
file "<constant>/UvsPressure";
}
value uniform 0;
}
......
......@@ -131,6 +131,7 @@ template<class Type>
void Foam::uniformJumpFvPatchField<Type>::write(Ostream& os) const
{
fixedJumpFvPatchField<Type>::write(os);
if (this->cyclicPatch().owner())
{
jumpTable_->writeData(os);
......
......@@ -94,7 +94,7 @@ protected:
// Protected data
//- "jump" table
//- The "jump" table
autoPtr<Function1<Type>> jumpTable_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment