Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GILLES Sebastien
MoReFEM
Commits
2760d4b2
Commit
2760d4b2
authored
Apr 16, 2019
by
GILLES Sebastien
Browse files
#1408 More renaming for ActiveStress/InternalVariable.
parent
002d9f35
Changes
5
Hide whitespace changes
Inline
Side-by-side
Sources/OperatorInstances/VariationalOperator/NonlinearForm/Local/SecondPiolaKirchhoffStressTensor.hpp
View file @
2760d4b2
...
...
@@ -122,7 +122,8 @@ namespace MoReFEM
using
elementary_data_type
=
typename
parent
::
elementary_data_type
;
//! Alias to the type of the input of the active stress policy.
using
input_internal_variable_policy_type
=
typename
InternalVariablePolicyT
::
input_internal_variable_policy_type
;
using
input_internal_variable_policy_type
=
typename
InternalVariablePolicyT
::
input_internal_variable_policy_type
;
public:
...
...
Sources/OperatorInstances/VariationalOperator/NonlinearForm/Local/SecondPiolaKirchhoffStressTensor/InternalVariablePolicy/AnalyticalPrestress.hpp
View file @
2760d4b2
...
...
@@ -244,7 +244,7 @@ namespace MoReFEM
private:
//! Contant accessor to the input of the policy.
const
input_internal_variable_policy_type
&
GetInput
InternalPolicy
()
const
noexcept
;
const
input_internal_variable_policy_type
&
GetInput
ActiveStress
()
const
noexcept
;
private:
...
...
Sources/OperatorInstances/VariationalOperator/NonlinearForm/Local/SecondPiolaKirchhoffStressTensor/InternalVariablePolicy/AnalyticalPrestress.hxx
View file @
2760d4b2
...
...
@@ -134,7 +134,7 @@ namespace MoReFEM
double
u0_at_quad
=
0.
;
double
u1_at_quad
=
0.
;
const
double
sigma_0
=
GetInput
InternalPolicy
().
GetContractility
().
GetValue
(
quad_pt
,
geom_elt
);
const
double
sigma_0
=
GetInput
ActiveStress
().
GetContractility
().
GetValue
(
quad_pt
,
geom_elt
);
const
int
Nnode
=
static_cast
<
int
>
(
geom_elt
.
Nvertex
());
...
...
@@ -243,7 +243,7 @@ namespace MoReFEM
template
<
unsigned
int
FiberIndexT
>
inline
const
typename
AnalyticalPrestress
<
FiberIndexT
>::
input_internal_variable_policy_type
&
AnalyticalPrestress
<
FiberIndexT
>::
GetInput
InternalPolicy
()
const
noexcept
AnalyticalPrestress
<
FiberIndexT
>::
GetInput
ActiveStress
()
const
noexcept
{
return
input_internal_variable_policy_
;
}
...
...
Sources/OperatorInstances/VariationalOperator/NonlinearForm/SecondPiolaKirchhoffStressTensor/InternalVariablePolicy/AnalyticalPrestress.hpp
View file @
2760d4b2
...
...
@@ -114,10 +114,10 @@ namespace MoReFEM
private:
//! Accessor.
const
input_internal_variable_policy_type
&
GetInput
InternalVariablePolicy
()
const
noexcept
;
const
input_internal_variable_policy_type
&
GetInput
ActiveStress
()
const
noexcept
;
//! Accessor.
input_internal_variable_policy_type
&
GetNonCstInput
InternalVariablePolicy
()
noexcept
;
input_internal_variable_policy_type
&
GetNonCstInput
ActiveStress
()
noexcept
;
private:
...
...
Sources/OperatorInstances/VariationalOperator/NonlinearForm/SecondPiolaKirchhoffStressTensor/InternalVariablePolicy/AnalyticalPrestress.hxx
View file @
2760d4b2
...
...
@@ -48,7 +48,7 @@ namespace MoReFEM
sigma_c_
=
std
::
make_unique
<
ParameterAtQuadraturePoint
<
ParameterNS
::
Type
::
scalar
>>
(
"SigmaC"
,
domain
,
quadrature_rule_per_topology
,
GetInput
InternalPolicy
().
GetInitialValueInternalVariable
(),
GetInput
ActiveStress
().
GetInitialValueInternalVariable
(),
time_manager
);
ParameterAtQuadraturePoint
<
ParameterNS
::
Type
::
scalar
>*
raw_sigma_c
=
sigma_c_
.
get
();
...
...
@@ -63,7 +63,7 @@ namespace MoReFEM
template
<
unsigned
int
FiberIndexT
>
inline
const
typename
AnalyticalPrestress
<
FiberIndexT
>::
input_internal_variable_policy_type
&
AnalyticalPrestress
<
FiberIndexT
>::
GetInput
InternalPolicy
()
const
noexcept
AnalyticalPrestress
<
FiberIndexT
>::
GetInput
ActiveStress
()
const
noexcept
{
assert
(
!
(
!
input_internal_variable_policy_
));
return
*
input_internal_variable_policy_
;
...
...
@@ -72,9 +72,9 @@ namespace MoReFEM
template
<
unsigned
int
FiberIndexT
>
inline
typename
AnalyticalPrestress
<
FiberIndexT
>::
input_internal_variable_policy_type
&
AnalyticalPrestress
<
FiberIndexT
>::
GetNonCstInput
InternalVariablePolicy
()
noexcept
AnalyticalPrestress
<
FiberIndexT
>::
GetNonCstInput
ActiveStress
()
noexcept
{
return
const_cast
<
input_internal_variable_policy_type
&>
(
GetInput
InternalPolicy
());
return
const_cast
<
input_internal_variable_policy_type
&>
(
GetInput
ActiveStress
());
}
...
...
Write
Preview
Markdown
is supported
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