Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mfront-wrapper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
navier-fenics
mfront-wrapper
Commits
65db9759
Commit
65db9759
authored
Feb 24, 2020
by
Jeremy BLEYER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds setup.py and operational wrapper
parent
88bca57f
Changes
25
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
1496 additions
and
1287 deletions
+1496
-1287
README.md
README.md
+1
-0
demos/logarithmic_strain_plasticity.py
demos/logarithmic_strain_plasticity.py
+10
-3
demos/small_strain_vonMises_plasticity.py
demos/small_strain_vonMises_plasticity.py
+9
-6
materials/include/TFEL/Material/IsotropicLinearHardeningPlasticity.hxx
...lude/TFEL/Material/IsotropicLinearHardeningPlasticity.hxx
+9
-11
materials/include/TFEL/Material/IsotropicLinearHardeningPlasticityBehaviourData.hxx
...erial/IsotropicLinearHardeningPlasticityBehaviourData.hxx
+4
-5
materials/include/TFEL/Material/IsotropicLinearHardeningPlasticityIntegrationData.hxx
...ial/IsotropicLinearHardeningPlasticityIntegrationData.hxx
+6
-6
materials/include/TFEL/Material/LogarithmicStrainPlasticity.hxx
...als/include/TFEL/Material/LogarithmicStrainPlasticity.hxx
+12
-14
materials/include/TFEL/Material/LogarithmicStrainPlasticityBehaviourData.hxx
...FEL/Material/LogarithmicStrainPlasticityBehaviourData.hxx
+5
-6
materials/include/TFEL/Material/LogarithmicStrainPlasticityIntegrationData.hxx
...L/Material/LogarithmicStrainPlasticityIntegrationData.hxx
+6
-6
materials/src/IsotropicLinearHardeningPlasticity-generic.cxx
materials/src/IsotropicLinearHardeningPlasticity-generic.cxx
+5
-2
materials/src/IsotropicLinearHardeningPlasticity-generic.d
materials/src/IsotropicLinearHardeningPlasticity-generic.d
+289
-300
materials/src/IsotropicLinearHardeningPlasticity.cxx
materials/src/IsotropicLinearHardeningPlasticity.cxx
+1
-1
materials/src/IsotropicLinearHardeningPlasticity.d
materials/src/IsotropicLinearHardeningPlasticity.d
+240
-252
materials/src/LogarithmicStrainPlasticity-generic.cxx
materials/src/LogarithmicStrainPlasticity-generic.cxx
+8
-5
materials/src/LogarithmicStrainPlasticity-generic.d
materials/src/LogarithmicStrainPlasticity-generic.d
+294
-307
materials/src/LogarithmicStrainPlasticity.cxx
materials/src/LogarithmicStrainPlasticity.cxx
+1
-1
materials/src/LogarithmicStrainPlasticity.d
materials/src/LogarithmicStrainPlasticity.d
+242
-254
materials/src/Makefile.mfront
materials/src/Makefile.mfront
+2
-2
materials/src/targets.lst
materials/src/targets.lst
+14
-14
mfront_wrapper/__init__.py
mfront_wrapper/__init__.py
+15
-0
mfront_wrapper/mfront_wrapper.py
mfront_wrapper/mfront_wrapper.py
+0
-92
mfront_wrapper/nonlinear_material.py
mfront_wrapper/nonlinear_material.py
+33
-0
mfront_wrapper/nonlinear_problem.py
mfront_wrapper/nonlinear_problem.py
+179
-0
mfront_wrapper/utils.py
mfront_wrapper/utils.py
+94
-0
setup.py
setup.py
+17
-0
No files found.
README.md
0 → 100644
View file @
65db9759
A Python package for wrapping the usage of MFront in FEniCS
demos/logarithmic_strain_plasticity.py
View file @
65db9759
from
dolfin
import
*
from
dolfin
import
*
import
mfront_wrapper
as
mf
import
mfront_wrapper
as
mf
import
numpy
as
np
import
numpy
as
np
import
ufl
length
,
width
,
height
=
1.
,
40e-3
,
100e-3
length
,
width
,
height
=
1.
,
40e-3
,
100e-3
nb_elt_p
,
nb_elt_l
=
10
,
30
nb_elt_p
,
nb_elt_l
=
10
,
30
mesh
=
BoxMesh
(
Point
(
0
,
-
width
/
2
,
-
height
/
2.
),
Point
(
length
,
width
/
2
,
height
/
2.
),
nb_elt_l
,
2
,
nb_elt_p
)
mesh
=
BoxMesh
(
Point
(
0
,
-
width
/
2
,
-
height
/
2.
),
Point
(
length
,
width
/
2
,
height
/
2.
),
nb_elt_l
,
2
,
nb_elt_p
)
V
=
VectorFunctionSpace
(
mesh
,
"CG"
,
2
)
V
=
VectorFunctionSpace
(
mesh
,
"CG"
,
2
)
u
=
Function
(
V
)
u
=
Function
(
V
,
name
=
"Displacement"
)
def
left
(
x
,
on_boundary
):
def
left
(
x
,
on_boundary
):
return
near
(
x
[
0
],
0
)
and
on_boundary
return
near
(
x
[
0
],
0
)
and
on_boundary
...
@@ -26,17 +27,23 @@ bcv = DirichletBC(V.sub(0), Constant(1.), left)
...
@@ -26,17 +27,23 @@ bcv = DirichletBC(V.sub(0), Constant(1.), left)
bcv
.
apply
(
v
.
vector
())
bcv
.
apply
(
v
.
vector
())
Vpost
=
FunctionSpace
(
mesh
,
"CG"
,
1
)
Vpost
=
FunctionSpace
(
mesh
,
"CG"
,
1
)
file_results
=
XDMFFile
(
"beam_GL_plasticity.xdmf"
)
file_results
=
XDMFFile
(
"
results/
beam_GL_plasticity.xdmf"
)
file_results
.
parameters
[
"flush_output"
]
=
True
file_results
.
parameters
[
"flush_output"
]
=
True
file_results
.
parameters
[
"functions_share_mesh"
]
=
True
file_results
.
parameters
[
"functions_share_mesh"
]
=
True
selfweight
=
Expression
((
"0"
,
"0"
,
"-t*qmax"
),
t
=
0.
,
qmax
=
50e6
,
degree
=
0
)
selfweight
=
Expression
((
"0"
,
"0"
,
"-t*qmax"
),
t
=
0.
,
qmax
=
50e6
,
degree
=
0
)
material
=
mf
.
NonlinearMaterial
(
'src/libBehaviour.so'
,
"LogarithmicStrainPlasticity"
)
material
=
mf
.
MFrontNonlinearMaterial
(
'../materials/src/libBehaviour.so'
,
"LogarithmicStrainPlasticity"
)
problem
=
mf
.
MFrontNonlinearProblem
(
u
,
material
)
problem
=
mf
.
MFrontNonlinearProblem
(
u
,
material
)
problem
.
set_loading
(
dot
(
selfweight
,
u
)
*
dx
)
problem
.
set_loading
(
dot
(
selfweight
,
u
)
*
dx
)
problem
.
bc
=
bc
problem
.
bc
=
bc
p
=
problem
.
get_state_variable
(
name
=
"EquivalentPlasticStrain"
)
assert
(
ufl
.
shape
(
p
)
==
())
epsel
=
problem
.
get_state_variable
(
name
=
"ElasticStrain"
)
print
(
ufl
.
shape
(
epsel
))
prm
=
problem
.
solver
.
parameters
prm
=
problem
.
solver
.
parameters
prm
[
"absolute_tolerance"
]
=
1e-6
prm
[
"absolute_tolerance"
]
=
1e-6
prm
[
"relative_tolerance"
]
=
1e-6
prm
[
"relative_tolerance"
]
=
1e-6
...
...
demos/small_strain_vonMises_plasticity.py
View file @
65db9759
from
dolfin
import
*
from
dolfin
import
*
import
mfront_wrapper
as
mf
import
mfront_wrapper
as
mf
import
numpy
as
np
import
numpy
as
np
import
ufl
hypothesis
=
"axisymmetric"
# axisymmetric
hypothesis
=
"axisymmetric"
# axisymmetric
...
@@ -37,16 +38,18 @@ mat_prop = {"YoungModulus": E,
...
@@ -37,16 +38,18 @@ mat_prop = {"YoungModulus": E,
"PoissonRatio"
:
nu
,
"PoissonRatio"
:
nu
,
"HardeningSlope"
:
H
,
"HardeningSlope"
:
H
,
"YieldStrength"
:
sig0
}
"YieldStrength"
:
sig0
}
material
=
mf
.
NonlinearMaterial
(
'materials/src/libBehaviour.so'
,
'IsotropicLinearHardeningPlasticity'
,
material
=
mf
.
MFrontNonlinearMaterial
(
'../materials/src/libBehaviour.so'
,
'IsotropicLinearHardeningPlasticity'
,
hypothesis
=
hypothesis
,
hypothesis
=
hypothesis
,
material_properties
=
mat_prop
)
material_properties
=
mat_prop
)
problem
=
mf
.
MFrontNonlinearProblem
(
u
,
material
,
quadrature_degree
=
4
)
problem
=
mf
.
MFrontNonlinearProblem
(
u
,
material
,
quadrature_degree
=
4
)
problem
.
set_loading
(
loading
*
dot
(
n
,
u
)
*
measure
*
ds
(
4
))
problem
.
set_loading
(
loading
*
dot
(
n
,
u
)
*
measure
*
ds
(
4
))
problem
.
bc
=
bc
problem
.
bc
=
bc
p
=
problem
.
register_state_variable
(
name
=
"EquivalentPlasticStrain"
)
epsel
=
problem
.
register_state_variable
(
name
=
"ElasticStrain"
,
shape
=
4
)
p
=
problem
.
get_state_variable
(
name
=
"EquivalentPlasticStrain"
)
print
(
problem
.
state_variables
)
assert
(
ufl
.
shape
(
p
)
==
())
epsel
=
problem
.
get_state_variable
(
name
=
"ElasticStrain"
)
assert
(
ufl
.
shape
(
epsel
)
==
(
4
,
))
file_results
=
XDMFFile
(
"results/plasticity_results.xdmf"
)
file_results
=
XDMFFile
(
"results/plasticity_results.xdmf"
)
file_results
.
parameters
[
"flush_output"
]
=
True
file_results
.
parameters
[
"flush_output"
]
=
True
...
...
materials/include/TFEL/Material/IsotropicLinearHardeningPlasticity.hxx
View file @
65db9759
/*!
/*!
* \file TFEL/Material/IsotropicLinearHardeningPlasticity.hxx
* \file TFEL/Material/IsotropicLinearHardeningPlasticity.hxx
* \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour.
* \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Thomas Helfer
* \author Thomas Helfer
* \date 14 / 10 / 2016
* \date 14 / 10 / 2016
*/
*/
...
@@ -132,6 +132,7 @@ using temperature = typename Types::temperature;
...
@@ -132,6 +132,7 @@ using temperature = typename Types::temperature;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
energydensity
=
typename
Types
::
energydensity
;
using
TVector
=
typename
Types
::
TVector
;
using
TVector
=
typename
Types
::
TVector
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor4
=
typename
Types
::
Stensor4
;
using
Stensor4
=
typename
Types
::
Stensor4
;
...
@@ -448,23 +449,20 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
...
@@ -448,23 +449,20 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std
::
ostream
&
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
IsotropicLinearHardeningPlasticity
<
hypothesis
,
Type
,
false
>&
b
)
operator
<<
(
std
::
ostream
&
os
,
const
IsotropicLinearHardeningPlasticity
<
hypothesis
,
Type
,
false
>&
b
)
{
{
using
namespace
std
;
os
<<
"εᵗᵒ : "
<<
b
.
eto
<<
'\n'
;
os
<<
"eto : "
<<
b
.
eto
<<
'\n'
;
os
<<
"Δεᵗᵒ : "
<<
b
.
deto
<<
'\n'
;
os
<<
"deto : "
<<
b
.
deto
<<
'\n'
;
os
<<
"σ : "
<<
b
.
sig
<<
'\n'
;
os
<<
"sig : "
<<
b
.
sig
<<
'\n'
;
os
<<
"Δt : "
<<
b
.
dt
<<
'\n'
;
os
<<
"dt : "
<<
b
.
dt
<<
endl
;
os
<<
"T : "
<<
b
.
T
<<
endl
;
os
<<
"dT : "
<<
b
.
dT
<<
endl
;
os
<<
"young : "
<<
b
.
young
<<
'\n'
;
os
<<
"young : "
<<
b
.
young
<<
'\n'
;
os
<<
"nu : "
<<
b
.
nu
<<
'\n'
;
os
<<
"nu : "
<<
b
.
nu
<<
'\n'
;
os
<<
"H : "
<<
b
.
H
<<
'\n'
;
os
<<
"H : "
<<
b
.
H
<<
'\n'
;
os
<<
"s0 : "
<<
b
.
s0
<<
'\n'
;
os
<<
"s0 : "
<<
b
.
s0
<<
'\n'
;
os
<<
"eel : "
<<
b
.
eel
<<
'\n'
;
os
<<
"eel : "
<<
b
.
eel
<<
'\n'
;
os
<<
"
d
eel : "
<<
b
.
deel
<<
'\n'
;
os
<<
"
Δ
eel : "
<<
b
.
deel
<<
'\n'
;
os
<<
"p : "
<<
b
.
p
<<
'\n'
;
os
<<
"p : "
<<
b
.
p
<<
'\n'
;
os
<<
"
d
p : "
<<
b
.
dp
<<
'\n'
;
os
<<
"
Δ
p : "
<<
b
.
dp
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
'\n'
;
os
<<
"
d
T : "
<<
b
.
dT
<<
'\n'
;
os
<<
"
Δ
T : "
<<
b
.
dT
<<
'\n'
;
os
<<
"minimal_time_step_scaling_factor : "
<<
b
.
minimal_time_step_scaling_factor
<<
'\n'
;
os
<<
"minimal_time_step_scaling_factor : "
<<
b
.
minimal_time_step_scaling_factor
<<
'\n'
;
os
<<
"maximal_time_step_scaling_factor : "
<<
b
.
maximal_time_step_scaling_factor
<<
'\n'
;
os
<<
"maximal_time_step_scaling_factor : "
<<
b
.
maximal_time_step_scaling_factor
<<
'\n'
;
return
os
;
return
os
;
...
...
materials/include/TFEL/Material/IsotropicLinearHardeningPlasticityBehaviourData.hxx
View file @
65db9759
/*!
/*!
* \file TFEL/Material/IsotropicLinearHardeningPlasticityBehaviourData.hxx
* \file TFEL/Material/IsotropicLinearHardeningPlasticityBehaviourData.hxx
* \brief this file implements the IsotropicLinearHardeningPlasticityBehaviourData class.
* \brief this file implements the IsotropicLinearHardeningPlasticityBehaviourData class.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Thomas Helfer
* \author Thomas Helfer
* \date 14 / 10 / 2016
* \date 14 / 10 / 2016
*/
*/
...
@@ -85,6 +85,7 @@ using temperature = typename Types::temperature;
...
@@ -85,6 +85,7 @@ using temperature = typename Types::temperature;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
energydensity
=
typename
Types
::
energydensity
;
using
TVector
=
typename
Types
::
TVector
;
using
TVector
=
typename
Types
::
TVector
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor4
=
typename
Types
::
Stensor4
;
using
Stensor4
=
typename
Types
::
Stensor4
;
...
@@ -199,10 +200,8 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
...
@@ -199,10 +200,8 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std
::
ostream
&
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
IsotropicLinearHardeningPlasticityBehaviourData
<
hypothesis
,
Type
,
false
>&
b
)
operator
<<
(
std
::
ostream
&
os
,
const
IsotropicLinearHardeningPlasticityBehaviourData
<
hypothesis
,
Type
,
false
>&
b
)
{
{
using
namespace
std
;
os
<<
"εᵗᵒ : "
<<
b
.
eto
<<
'\n'
;
os
<<
"eto : "
<<
b
.
eto
<<
'\n'
;
os
<<
"σ : "
<<
b
.
sig
<<
'\n'
;
os
<<
"sig : "
<<
b
.
sig
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
endl
;
os
<<
"young : "
<<
b
.
young
<<
'\n'
;
os
<<
"young : "
<<
b
.
young
<<
'\n'
;
os
<<
"nu : "
<<
b
.
nu
<<
'\n'
;
os
<<
"nu : "
<<
b
.
nu
<<
'\n'
;
os
<<
"H : "
<<
b
.
H
<<
'\n'
;
os
<<
"H : "
<<
b
.
H
<<
'\n'
;
...
...
materials/include/TFEL/Material/IsotropicLinearHardeningPlasticityIntegrationData.hxx
View file @
65db9759
/*!
/*!
* \file TFEL/Material/IsotropicLinearHardeningPlasticityIntegrationData.hxx
* \file TFEL/Material/IsotropicLinearHardeningPlasticityIntegrationData.hxx
* \brief this file implements the IsotropicLinearHardeningPlasticityIntegrationData class.
* \brief this file implements the IsotropicLinearHardeningPlasticityIntegrationData class.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Thomas Helfer
* \author Thomas Helfer
* \date 14 / 10 / 2016
* \date 14 / 10 / 2016
*/
*/
...
@@ -73,6 +73,7 @@ using temperature = typename Types::temperature;
...
@@ -73,6 +73,7 @@ using temperature = typename Types::temperature;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
energydensity
=
typename
Types
::
energydensity
;
using
TVector
=
typename
Types
::
TVector
;
using
TVector
=
typename
Types
::
TVector
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor4
=
typename
Types
::
Stensor4
;
using
Stensor4
=
typename
Types
::
Stensor4
;
...
@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
...
@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std
::
ostream
&
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
IsotropicLinearHardeningPlasticityIntegrationData
<
hypothesis
,
Type
,
false
>&
b
)
operator
<<
(
std
::
ostream
&
os
,
const
IsotropicLinearHardeningPlasticityIntegrationData
<
hypothesis
,
Type
,
false
>&
b
)
{
{
using
namespace
std
;
os
<<
"Δεᵗᵒ : "
<<
b
.
deto
<<
'\n'
;
os
<<
"deto : "
<<
b
.
deto
<<
'\n'
;
os
<<
"σ : "
<<
b
.
sig
<<
'\n'
;
os
<<
"dt : "
<<
b
.
dt
<<
endl
;
os
<<
"Δt : "
<<
b
.
dt
<<
'\n'
;
os
<<
"dT : "
<<
b
.
dT
<<
endl
;
os
<<
"ΔT : "
<<
b
.
dT
<<
'\n'
;
os
<<
"dT : "
<<
b
.
dT
<<
'\n'
;
return
os
;
return
os
;
}
}
...
...
materials/include/TFEL/Material/LogarithmicStrainPlasticity.hxx
View file @
65db9759
/*!
/*!
* \file TFEL/Material/LogarithmicStrainPlasticity.hxx
* \file TFEL/Material/LogarithmicStrainPlasticity.hxx
* \brief this file implements the LogarithmicStrainPlasticity Behaviour.
* \brief this file implements the LogarithmicStrainPlasticity Behaviour.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Helfer Thomas
* \author Helfer Thomas
* \date 5 / 12 / 13
* \date 5 / 12 / 13
*/
*/
...
@@ -142,6 +142,7 @@ using temperature = typename Types::temperature;
...
@@ -142,6 +142,7 @@ using temperature = typename Types::temperature;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
energydensity
=
typename
Types
::
energydensity
;
using
TVector
=
typename
Types
::
TVector
;
using
TVector
=
typename
Types
::
TVector
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor4
=
typename
Types
::
Stensor4
;
using
Stensor4
=
typename
Types
::
Stensor4
;
...
@@ -556,19 +557,16 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
...
@@ -556,19 +557,16 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std
::
ostream
&
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
LogarithmicStrainPlasticity
<
hypothesis
,
Type
,
false
>&
b
)
operator
<<
(
std
::
ostream
&
os
,
const
LogarithmicStrainPlasticity
<
hypothesis
,
Type
,
false
>&
b
)
{
{
using
namespace
std
;
os
<<
"εᵗᵒ : "
<<
b
.
eto
<<
'\n'
;
os
<<
"eto : "
<<
b
.
eto
<<
'\n'
;
os
<<
"Δεᵗᵒ : "
<<
b
.
deto
<<
'\n'
;
os
<<
"deto : "
<<
b
.
deto
<<
'\n'
;
os
<<
"σ : "
<<
b
.
sig
<<
'\n'
;
os
<<
"sig : "
<<
b
.
sig
<<
'\n'
;
os
<<
"Δt : "
<<
b
.
dt
<<
'\n'
;
os
<<
"dt : "
<<
b
.
dt
<<
endl
;
os
<<
"εᵉˡ : "
<<
b
.
eel
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
endl
;
os
<<
"Δεᵉˡ : "
<<
b
.
deel
<<
'\n'
;
os
<<
"dT : "
<<
b
.
dT
<<
endl
;
os
<<
"eel : "
<<
b
.
eel
<<
'\n'
;
os
<<
"deel : "
<<
b
.
deel
<<
'\n'
;
os
<<
"p : "
<<
b
.
p
<<
'\n'
;
os
<<
"p : "
<<
b
.
p
<<
'\n'
;
os
<<
"
d
p : "
<<
b
.
dp
<<
'\n'
;
os
<<
"
Δ
p : "
<<
b
.
dp
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
'\n'
;
os
<<
"
d
T : "
<<
b
.
dT
<<
'\n'
;
os
<<
"
Δ
T : "
<<
b
.
dT
<<
'\n'
;
os
<<
"T_ : "
<<
b
.
T_
<<
'\n'
;
os
<<
"T_ : "
<<
b
.
T_
<<
'\n'
;
os
<<
"se : "
<<
b
.
se
<<
'\n'
;
os
<<
"se : "
<<
b
.
se
<<
'\n'
;
os
<<
"n : "
<<
b
.
n
<<
'\n'
;
os
<<
"n : "
<<
b
.
n
<<
'\n'
;
...
@@ -578,8 +576,8 @@ os << "s0 : " << b.s0 << '\n';
...
@@ -578,8 +576,8 @@ os << "s0 : " << b.s0 << '\n';
os
<<
"Et : "
<<
b
.
Et
<<
'\n'
;
os
<<
"Et : "
<<
b
.
Et
<<
'\n'
;
os
<<
"minimal_time_step_scaling_factor : "
<<
b
.
minimal_time_step_scaling_factor
<<
'\n'
;
os
<<
"minimal_time_step_scaling_factor : "
<<
b
.
minimal_time_step_scaling_factor
<<
'\n'
;
os
<<
"maximal_time_step_scaling_factor : "
<<
b
.
maximal_time_step_scaling_factor
<<
'\n'
;
os
<<
"maximal_time_step_scaling_factor : "
<<
b
.
maximal_time_step_scaling_factor
<<
'\n'
;
os
<<
"
theta
: "
<<
b
.
theta
<<
'\n'
;
os
<<
"
θ
: "
<<
b
.
theta
<<
'\n'
;
os
<<
"
epsilon
: "
<<
b
.
epsilon
<<
'\n'
;
os
<<
"
ε
: "
<<
b
.
epsilon
<<
'\n'
;
os
<<
"iterMax : "
<<
b
.
iterMax
<<
'\n'
;
os
<<
"iterMax : "
<<
b
.
iterMax
<<
'\n'
;
return
os
;
return
os
;
}
}
...
...
materials/include/TFEL/Material/LogarithmicStrainPlasticityBehaviourData.hxx
View file @
65db9759
/*!
/*!
* \file TFEL/Material/LogarithmicStrainPlasticityBehaviourData.hxx
* \file TFEL/Material/LogarithmicStrainPlasticityBehaviourData.hxx
* \brief this file implements the LogarithmicStrainPlasticityBehaviourData class.
* \brief this file implements the LogarithmicStrainPlasticityBehaviourData class.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Helfer Thomas
* \author Helfer Thomas
* \date 5 / 12 / 13
* \date 5 / 12 / 13
*/
*/
...
@@ -85,6 +85,7 @@ using temperature = typename Types::temperature;
...
@@ -85,6 +85,7 @@ using temperature = typename Types::temperature;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
energydensity
=
typename
Types
::
energydensity
;
using
TVector
=
typename
Types
::
TVector
;
using
TVector
=
typename
Types
::
TVector
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor4
=
typename
Types
::
Stensor4
;
using
Stensor4
=
typename
Types
::
Stensor4
;
...
@@ -177,11 +178,9 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
...
@@ -177,11 +178,9 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std
::
ostream
&
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
LogarithmicStrainPlasticityBehaviourData
<
hypothesis
,
Type
,
false
>&
b
)
operator
<<
(
std
::
ostream
&
os
,
const
LogarithmicStrainPlasticityBehaviourData
<
hypothesis
,
Type
,
false
>&
b
)
{
{
using
namespace
std
;
os
<<
"εᵗᵒ : "
<<
b
.
eto
<<
'\n'
;
os
<<
"eto : "
<<
b
.
eto
<<
'\n'
;
os
<<
"σ : "
<<
b
.
sig
<<
'\n'
;
os
<<
"sig : "
<<
b
.
sig
<<
'\n'
;
os
<<
"εᵉˡ : "
<<
b
.
eel
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
endl
;
os
<<
"eel : "
<<
b
.
eel
<<
'\n'
;
os
<<
"p : "
<<
b
.
p
<<
'\n'
;
os
<<
"p : "
<<
b
.
p
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
'\n'
;
os
<<
"T : "
<<
b
.
T
<<
'\n'
;
return
os
;
return
os
;
...
...
materials/include/TFEL/Material/LogarithmicStrainPlasticityIntegrationData.hxx
View file @
65db9759
/*!
/*!
* \file TFEL/Material/LogarithmicStrainPlasticityIntegrationData.hxx
* \file TFEL/Material/LogarithmicStrainPlasticityIntegrationData.hxx
* \brief this file implements the LogarithmicStrainPlasticityIntegrationData class.
* \brief this file implements the LogarithmicStrainPlasticityIntegrationData class.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Helfer Thomas
* \author Helfer Thomas
* \date 5 / 12 / 13
* \date 5 / 12 / 13
*/
*/
...
@@ -73,6 +73,7 @@ using temperature = typename Types::temperature;
...
@@ -73,6 +73,7 @@ using temperature = typename Types::temperature;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalexpansion
=
typename
Types
::
thermalexpansion
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
thermalconductivity
=
typename
Types
::
thermalconductivity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
massdensity
=
typename
Types
::
massdensity
;
using
energydensity
=
typename
Types
::
energydensity
;
using
TVector
=
typename
Types
::
TVector
;
using
TVector
=
typename
Types
::
TVector
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor
=
typename
Types
::
Stensor
;
using
Stensor4
=
typename
Types
::
Stensor4
;
using
Stensor4
=
typename
Types
::
Stensor4
;
...
@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
...
@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std
::
ostream
&
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
LogarithmicStrainPlasticityIntegrationData
<
hypothesis
,
Type
,
false
>&
b
)
operator
<<
(
std
::
ostream
&
os
,
const
LogarithmicStrainPlasticityIntegrationData
<
hypothesis
,
Type
,
false
>&
b
)
{
{
using
namespace
std
;
os
<<
"Δεᵗᵒ : "
<<
b
.
deto
<<
'\n'
;
os
<<
"deto : "
<<
b
.
deto
<<
'\n'
;
os
<<
"σ : "
<<
b
.
sig
<<
'\n'
;
os
<<
"dt : "
<<
b
.
dt
<<
endl
;
os
<<
"Δt : "
<<
b
.
dt
<<
'\n'
;
os
<<
"dT : "
<<
b
.
dT
<<
endl
;
os
<<
"ΔT : "
<<
b
.
dT
<<
'\n'
;
os
<<
"dT : "
<<
b
.
dT
<<
'\n'
;
return
os
;
return
os
;
}
}
...
...
materials/src/IsotropicLinearHardeningPlasticity-generic.cxx
View file @
65db9759
...
@@ -38,11 +38,14 @@ return policy;
...
@@ -38,11 +38,14 @@ return policy;
extern
"C"
{
extern
"C"
{
#endif
/* __cplusplus */
#endif
/* __cplusplus */
MFRONT_SHAREDOBJ
const
char
*
IsotropicLinearHardeningPlasticity_build_id
=
""
;
MFRONT_SHAREDOBJ
const
char
*
MFRONT_SHAREDOBJ
const
char
*
IsotropicLinearHardeningPlasticity_mfront_ept
=
"IsotropicLinearHardeningPlasticity"
;
IsotropicLinearHardeningPlasticity_mfront_ept
=
"IsotropicLinearHardeningPlasticity"
;
MFRONT_SHAREDOBJ
const
char
*
MFRONT_SHAREDOBJ
const
char
*
IsotropicLinearHardeningPlasticity_tfel_version
=
"3.3.0
-dev
"
;
IsotropicLinearHardeningPlasticity_tfel_version
=
"3.3.0"
;
MFRONT_SHAREDOBJ
unsigned
short
IsotropicLinearHardeningPlasticity_mfront_mkt
=
1u
;
MFRONT_SHAREDOBJ
unsigned
short
IsotropicLinearHardeningPlasticity_mfront_mkt
=
1u
;
...
@@ -106,7 +109,7 @@ MFRONT_SHAREDOBJ int IsotropicLinearHardeningPlasticity_ParametersTypes [] = {0,
...
@@ -106,7 +109,7 @@ MFRONT_SHAREDOBJ int IsotropicLinearHardeningPlasticity_ParametersTypes [] = {0,
MFRONT_SHAREDOBJ
double
IsotropicLinearHardeningPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue
=
0.1
;
MFRONT_SHAREDOBJ
double
IsotropicLinearHardeningPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue
=
0.1
;
MFRONT_SHAREDOBJ
double
IsotropicLinearHardeningPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue
=
1.79769e+308
;
MFRONT_SHAREDOBJ
double
IsotropicLinearHardeningPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue
=
1.79769
31348623
e+308
;
MFRONT_SHAREDOBJ
unsigned
short
IsotropicLinearHardeningPlasticity_requiresStiffnessTensor
=
0
;
MFRONT_SHAREDOBJ
unsigned
short
IsotropicLinearHardeningPlasticity_requiresStiffnessTensor
=
0
;
MFRONT_SHAREDOBJ
unsigned
short
IsotropicLinearHardeningPlasticity_requiresThermalExpansionCoefficientTensor
=
0
;
MFRONT_SHAREDOBJ
unsigned
short
IsotropicLinearHardeningPlasticity_requiresThermalExpansionCoefficientTensor
=
0
;
...
...
materials/src/IsotropicLinearHardeningPlasticity-generic.d
View file @
65db9759
This diff is collapsed.
Click to expand it.
materials/src/IsotropicLinearHardeningPlasticity.cxx
View file @
65db9759
/*!
/*!
* \file IsotropicLinearHardeningPlasticity.cxx
* \file IsotropicLinearHardeningPlasticity.cxx
* \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour.
* \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Thomas Helfer
* \author Thomas Helfer
* \date 14 / 10 / 2016
* \date 14 / 10 / 2016
*/
*/
...
...
materials/src/IsotropicLinearHardeningPlasticity.d
View file @
65db9759
This diff is collapsed.
Click to expand it.
materials/src/LogarithmicStrainPlasticity-generic.cxx
View file @
65db9759
...
@@ -43,11 +43,14 @@ return policy;
...
@@ -43,11 +43,14 @@ return policy;
extern
"C"
{
extern
"C"
{
#endif
/* __cplusplus */
#endif
/* __cplusplus */
MFRONT_SHAREDOBJ
const
char
*
LogarithmicStrainPlasticity_build_id
=
""
;
MFRONT_SHAREDOBJ
const
char
*
MFRONT_SHAREDOBJ
const
char
*
LogarithmicStrainPlasticity_mfront_ept
=
"LogarithmicStrainPlasticity"
;
LogarithmicStrainPlasticity_mfront_ept
=
"LogarithmicStrainPlasticity"
;
MFRONT_SHAREDOBJ
const
char
*
MFRONT_SHAREDOBJ
const
char
*
LogarithmicStrainPlasticity_tfel_version
=
"3.3.0
-dev
"
;
LogarithmicStrainPlasticity_tfel_version
=
"3.3.0"
;
MFRONT_SHAREDOBJ
unsigned
short
LogarithmicStrainPlasticity_mfront_mkt
=
1u
;
MFRONT_SHAREDOBJ
unsigned
short
LogarithmicStrainPlasticity_mfront_mkt
=
1u
;
...
@@ -107,17 +110,17 @@ MFRONT_SHAREDOBJ const char * LogarithmicStrainPlasticity_Parameters[9] = {"Youn
...
@@ -107,17 +110,17 @@ MFRONT_SHAREDOBJ const char * LogarithmicStrainPlasticity_Parameters[9] = {"Youn
"theta"
,
"epsilon"
,
"iterMax"
};
"theta"
,
"epsilon"
,
"iterMax"
};
MFRONT_SHAREDOBJ
int
LogarithmicStrainPlasticity_ParametersTypes
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
};
MFRONT_SHAREDOBJ
int
LogarithmicStrainPlasticity_ParametersTypes
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
2
};
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_YoungModulus_ParameterDefaultValue
=
2
.1e+11
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_YoungModulus_ParameterDefaultValue
=
2
10000000000
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_PoissonRatio_ParameterDefaultValue
=
0
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_PoissonRatio_ParameterDefaultValue
=
0
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_s0_ParameterDefaultValue
=
2
.5e+08
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_s0_ParameterDefaultValue
=
2
50000000
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_Et_ParameterDefaultValue
=
1
e+06
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_Et_ParameterDefaultValue
=
1
000000
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue
=
0.1
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue
=
0.1
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue
=
1.79769e+308
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue
=
1.79769
31348623
e+308
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_theta_ParameterDefaultValue
=
1
;
MFRONT_SHAREDOBJ
double
LogarithmicStrainPlasticity_theta_ParameterDefaultValue
=
1
;
...
...
materials/src/LogarithmicStrainPlasticity-generic.d
View file @
65db9759
This diff is collapsed.
Click to expand it.
materials/src/LogarithmicStrainPlasticity.cxx
View file @
65db9759
/*!
/*!
* \file LogarithmicStrainPlasticity.cxx
* \file LogarithmicStrainPlasticity.cxx
* \brief this file implements the LogarithmicStrainPlasticity Behaviour.
* \brief this file implements the LogarithmicStrainPlasticity Behaviour.
* File generated by tfel version 3.3.0
-dev
* File generated by tfel version 3.3.0
* \author Helfer Thomas
* \author Helfer Thomas
* \date 5 / 12 / 13
* \date 5 / 12 / 13
*/
*/
...
...
materials/src/LogarithmicStrainPlasticity.d
View file @
65db9759
This diff is collapsed.
Click to expand it.
materials/src/Makefile.mfront
View file @
65db9759
# Makefile generated by mfront.