Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5157be4b
Commit
5157be4b
authored
Jul 13, 2017
by
Henry Weller
Committed by
Andrew Heather
Jul 13, 2017
Browse files
Function1::ramp function: Added clone function
parent
0ada640f
Changes
6
Show whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/functions/Function1/Zero/ZeroConstant.H
View file @
5157be4b
...
...
@@ -75,8 +75,8 @@ public:
//- Construct from entry name and dictionary
ZeroConstant
(
const
word
&
entryName
,
const
dictionary
&
dict
);
//- Construct and return a cl
zero
virtual
tmp
<
Function1
<
Type
>>
cl
zero
()
const
//- Construct and return a cl
one
virtual
tmp
<
Function1
<
Type
>>
cl
one
()
const
{
return
tmp
<
Function1
<
Type
>>
(
new
ZeroConstant
<
Type
>
(
*
this
));
}
...
...
src/OpenFOAM/primitives/functions/Function1/halfCosineRamp/halfCosineRamp.H
View file @
5157be4b
...
...
@@ -77,6 +77,12 @@ public:
const
dictionary
&
dict
);
//- Construct and return a clone
virtual
tmp
<
Function1
<
scalar
>>
clone
()
const
{
return
tmp
<
Function1
<
scalar
>>
(
new
halfCosineRamp
(
*
this
));
}
//- Destructor
virtual
~
halfCosineRamp
();
...
...
src/OpenFOAM/primitives/functions/Function1/linearRamp/linearRamp.H
View file @
5157be4b
...
...
@@ -77,6 +77,12 @@ public:
const
dictionary
&
dict
);
//- Construct and return a clone
virtual
tmp
<
Function1
<
scalar
>>
clone
()
const
{
return
tmp
<
Function1
<
scalar
>>
(
new
linearRamp
(
*
this
));
}
//- Destructor
virtual
~
linearRamp
();
...
...
src/OpenFOAM/primitives/functions/Function1/quadraticRamp/quadraticRamp.H
View file @
5157be4b
...
...
@@ -77,6 +77,12 @@ public:
const
dictionary
&
dict
);
//- Construct and return a clone
virtual
tmp
<
Function1
<
scalar
>>
clone
()
const
{
return
tmp
<
Function1
<
scalar
>>
(
new
quadraticRamp
(
*
this
));
}
//- Destructor
virtual
~
quadraticRamp
();
...
...
src/OpenFOAM/primitives/functions/Function1/quarterCosineRamp/quarterCosineRamp.H
View file @
5157be4b
...
...
@@ -77,6 +77,12 @@ public:
const
dictionary
&
dict
);
//- Construct and return a clone
virtual
tmp
<
Function1
<
scalar
>>
clone
()
const
{
return
tmp
<
Function1
<
scalar
>>
(
new
quarterCosineRamp
(
*
this
));
}
//- Destructor
virtual
~
quarterCosineRamp
();
...
...
src/OpenFOAM/primitives/functions/Function1/quarterSineRamp/quarterSineRamp.H
View file @
5157be4b
...
...
@@ -77,6 +77,12 @@ public:
const
dictionary
&
dict
);
//- Construct and return a clone
virtual
tmp
<
Function1
<
scalar
>>
clone
()
const
{
return
tmp
<
Function1
<
scalar
>>
(
new
quarterSineRamp
(
*
this
));
}
//- Destructor
virtual
~
quarterSineRamp
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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