mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: incorrect BC code templates (fixes #1885)
- autoPtr to Function requires clone() method, not optional copy/move argument. - fix bad character range for 'sed'
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) YEAR YEAR AUTHOR,AFFILIATION
|
||||
Copyright (C) YEAR AUTHOR,AFFILIATION
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -51,7 +51,7 @@ CONSTRUCT
|
||||
)
|
||||
:
|
||||
PARENT(p, iF),
|
||||
scalarData_(0.0),
|
||||
scalarData_(0),
|
||||
data_(Zero),
|
||||
fieldData_(p.size(), Zero),
|
||||
timeVsData_(),
|
||||
@ -61,7 +61,7 @@ CONSTRUCT
|
||||
{
|
||||
this->refValue() = Zero;
|
||||
this->refGrad() = Zero;
|
||||
this->valueFraction() = 0.0;
|
||||
this->valueFraction() = Zero;
|
||||
}
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ CONSTRUCT
|
||||
boolData_(false)
|
||||
{
|
||||
this->refGrad() = Zero;
|
||||
this->valueFraction() = 0.0;
|
||||
this->valueFraction() = Zero;
|
||||
|
||||
this->refValue() = FIELD("fieldData", dict, p.size());
|
||||
FVPATCHF::operator=(this->refValue());
|
||||
@ -116,7 +116,7 @@ CONSTRUCT
|
||||
scalarData_(ptf.scalarData_),
|
||||
data_(ptf.data_),
|
||||
fieldData_(ptf.fieldData_, mapper),
|
||||
timeVsData_(ptf.timeVsData_, false),
|
||||
timeVsData_(ptf.timeVsData_.clone()),
|
||||
wordData_(ptf.wordData_),
|
||||
labelData_(-1),
|
||||
boolData_(ptf.boolData_)
|
||||
@ -134,7 +134,7 @@ CONSTRUCT
|
||||
scalarData_(ptf.scalarData_),
|
||||
data_(ptf.data_),
|
||||
fieldData_(ptf.fieldData_),
|
||||
timeVsData_(ptf.timeVsData_, false),
|
||||
timeVsData_(ptf.timeVsData_.clone()),
|
||||
wordData_(ptf.wordData_),
|
||||
labelData_(-1),
|
||||
boolData_(ptf.boolData_)
|
||||
@ -153,7 +153,7 @@ CONSTRUCT
|
||||
scalarData_(ptf.scalarData_),
|
||||
data_(ptf.data_),
|
||||
fieldData_(ptf.fieldData_),
|
||||
timeVsData_(ptf.timeVsData_, false),
|
||||
timeVsData_(ptf.timeVsData_.clone()),
|
||||
wordData_(ptf.wordData_),
|
||||
labelData_(-1),
|
||||
boolData_(ptf.boolData_)
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) YEAR YEAR AUTHOR,AFFILIATION
|
||||
Copyright (C) YEAR AUTHOR,AFFILIATION
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -47,12 +47,12 @@ Description
|
||||
|
||||
Usage
|
||||
\table
|
||||
Property | Description | Req'd? | Default
|
||||
scalarData | single scalar value | yes |
|
||||
data | single TYPE value | yes |
|
||||
fieldData | TYPE field across patch | yes |
|
||||
timeVsData | TYPE function of time | yes |
|
||||
wordData | word, eg name of data object | no | wordDefault
|
||||
Property | Description | Req'd | Default
|
||||
scalarData | single scalar value | yes |
|
||||
data | single TYPE value | yes |
|
||||
fieldData | TYPE field across patch | yes |
|
||||
timeVsData | TYPE function of time | yes |
|
||||
wordData | word, eg name of data object | no | wordDefault
|
||||
\endtable
|
||||
|
||||
Example of the boundary condition specification:
|
||||
@ -97,7 +97,7 @@ class CONSTRUCT
|
||||
:
|
||||
public PARENT
|
||||
{
|
||||
// Private data
|
||||
// Private Data
|
||||
|
||||
//- Single valued scalar quantity, e.g. a coefficient
|
||||
scalar scalarData_;
|
||||
@ -152,8 +152,7 @@ public:
|
||||
const dictionary&
|
||||
);
|
||||
|
||||
//- Construct by mapping given BASETypeFvPatchField
|
||||
// onto a new patch
|
||||
//- Construct by mapping onto a new patch
|
||||
CONSTRUCT
|
||||
(
|
||||
const CLASS&,
|
||||
@ -162,7 +161,7 @@ public:
|
||||
const fvPatchFieldMapper&
|
||||
);
|
||||
|
||||
//- Construct as copy
|
||||
//- Copy construct
|
||||
CONSTRUCT
|
||||
(
|
||||
const CLASS&
|
||||
@ -201,7 +200,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Member functions
|
||||
// Member Functions
|
||||
|
||||
// Mapping functions
|
||||
|
||||
@ -226,7 +225,7 @@ public:
|
||||
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream&) const;
|
||||
virtual void write(Ostream& os) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) YEAR YEAR AUTHOR,AFFILIATION
|
||||
Copyright (C) YEAR AUTHOR,AFFILIATION
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) YEAR YEAR AUTHOR,AFFILIATION
|
||||
Copyright (C) YEAR AUTHOR,AFFILIATION
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) YEAR YEAR AUTHOR,AFFILIATION
|
||||
Copyright (C) YEAR AUTHOR,AFFILIATION
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
|
||||
Reference in New Issue
Block a user