Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Planned maintenance at 14:00 - platform may be offline until 15:00 (UK times)
Open sidebar
Development
openfoam
Commits
040e06b8
Commit
040e06b8
authored
Nov 11, 2015
by
Andrew Heather
Browse files
ENH: Constant DataEntry - added construct from components
parent
56459845
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.C
View file @
040e06b8
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2015 OpenCFD Ltd
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -55,6 +55,20 @@ Foam::Constant<Type>::Constant(const word& entryName, const dictionary& dict)
}
template
<
class
Type
>
Foam
::
Constant
<
Type
>::
Constant
(
const
word
&
entryName
,
const
Type
&
value
,
const
dimensionSet
&
dimensions
)
:
DataEntry
<
Type
>
(
entryName
),
value_
(
value
),
dimensions_
(
dimensions
)
{}
template
<
class
Type
>
Foam
::
Constant
<
Type
>::
Constant
(
const
Constant
<
Type
>&
cnst
)
:
...
...
src/OpenFOAM/primitives/functions/DataEntry/Constant/Constant.H
View file @
040e06b8
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
Copyright (C) 2015 OpenCFD Ltd
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -86,7 +86,15 @@ public:
// Constructors
//- Construct from entry name and Istream
//- Construct from components
Constant
(
const
word
&
entryName
,
const
Type
&
value
,
const
dimensionSet
&
dimensions
=
dimless
);
//- Construct from entry name and dictionary
Constant
(
const
word
&
entryName
,
const
dictionary
&
dict
);
//- Copy constructor
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment