Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LYNX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine Jacquey
LYNX
Commits
31ef9294
Commit
31ef9294
authored
Mar 10, 2019
by
Antoine Jacquey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed poromechanics.
parent
654ba26d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
20 deletions
+23
-20
include/materials/LynxHydroBase.h
include/materials/LynxHydroBase.h
+2
-2
src/kernels/LynxSolidMomentum.C
src/kernels/LynxSolidMomentum.C
+1
-1
src/materials/LynxDeformationBase.C
src/materials/LynxDeformationBase.C
+4
-1
src/materials/LynxHydroBase.C
src/materials/LynxHydroBase.C
+3
-3
src/materials/LynxHydroConstant.C
src/materials/LynxHydroConstant.C
+1
-1
test/tests/hydro_mech/mandel.i
test/tests/hydro_mech/mandel.i
+5
-5
test/tests/hydro_mech/tests
test/tests/hydro_mech/tests
+7
-7
No files found.
include/materials/LynxHydroBase.h
View file @
31ef9294
...
...
@@ -49,8 +49,8 @@ protected:
const
MaterialProperty
<
Real
>
&
_K
;
const
MaterialProperty
<
RankFourTensor
>
&
_tangent_modulus
;
const
MaterialProperty
<
RankTwoTensor
>
&
_strain_increment
;
const
MaterialProperty
<
RankTwoTensor
>
&
_
inelastic_strain
;
const
MaterialProperty
<
RankTwoTensor
>
&
_
inelastic_strain_old
;
const
MaterialProperty
<
RankTwoTensor
>
&
_
viscous_strain_incr
;
const
MaterialProperty
<
RankTwoTensor
>
&
_
plastic_strain_incr
;
MaterialProperty
<
Real
>
&
_biot
;
MaterialProperty
<
Real
>
&
_C_d
;
MaterialProperty
<
Real
>
&
_C_biot
;
...
...
src/kernels/LynxSolidMomentum.C
View file @
31ef9294
...
...
@@ -120,7 +120,7 @@ Real
LynxSolidMomentum
::
computeQpResidual
()
{
RealVectorValue
stress_row
=
_stress
[
_qp
].
row
(
_component
);
stress_row
(
_component
)
+
=
_biot
[
_qp
]
*
_pf
[
_qp
];
stress_row
(
_component
)
-
=
_biot
[
_qp
]
*
_pf
[
_qp
];
RealVectorValue
grav_term
=
-
_rho_b
[
_qp
]
*
_gravity
[
_qp
];
Real
residual
=
stress_row
*
_grad_test
[
_i
][
_qp
]
+
grav_term
(
_component
)
*
_test
[
_i
][
_qp
];
...
...
src/materials/LynxDeformationBase.C
View file @
31ef9294
...
...
@@ -271,6 +271,9 @@ LynxDeformationBase::computeStrainIncrement()
mooseError
(
"Unknown strain model. Specify 'small' or 'finite'!"
);
}
// Thermal strain correction
_strain_increment
[
_qp
]
-=
_thermal_strain_incr
[
_qp
];
if
(
_vol_locking_correction
)
vol_strain_incr
+=
_strain_increment
[
_qp
].
trace
()
*
_JxW
[
_qp
]
*
_coord
[
_qp
];
}
...
...
@@ -351,7 +354,7 @@ LynxDeformationBase::initializeQpDeformation()
{
// Initialze elastic strain
_elastic_strain
[
_qp
]
=
spinRotation
(
_elastic_strain_old
[
_qp
])
+
_strain_increment
[
_qp
]
-
_thermal_strain_incr
[
_qp
]
;
spinRotation
(
_elastic_strain_old
[
_qp
])
+
_strain_increment
[
_qp
];
// Initialize inelastic increment
_viscous_strain_incr
[
_qp
].
zero
();
...
...
src/materials/LynxHydroBase.C
View file @
31ef9294
...
...
@@ -36,8 +36,8 @@ LynxHydroBase::LynxHydroBase(const InputParameters & parameters)
_K
(
getDefaultMaterialProperty
<
Real
>
(
"bulk_modulus"
)),
_tangent_modulus
(
getDefaultMaterialProperty
<
RankFourTensor
>
(
"tangent_modulus"
)),
_strain_increment
(
getDefaultMaterialProperty
<
RankTwoTensor
>
(
"strain_increment"
)),
_
inelastic_strain
(
getDefaultMaterialProperty
<
RankTwoTensor
>
(
"inelastic_strain
"
)),
_
inelastic_strain_old
(
getMaterialPropertyOld
<
RankTwoTensor
>
(
"inelastic_strain
"
)),
_
viscous_strain_incr
(
getDefaultMaterialProperty
<
RankTwoTensor
>
(
"viscous_strain_increment
"
)),
_
plastic_strain_incr
(
getDefaultMaterialProperty
<
RankTwoTensor
>
(
"plastic_strain_increment
"
)),
_biot
(
declareProperty
<
Real
>
(
"biot_coefficient"
)),
_C_d
(
declareProperty
<
Real
>
(
"bulk_compressibility"
)),
_C_biot
(
declareProperty
<
Real
>
(
"biot_compressibility"
)),
...
...
@@ -97,7 +97,7 @@ LynxHydroBase::computeQpPoroMech()
{
Real
K_cto
=
_tangent_modulus
[
_qp
].
sum3x3
()
/
9
.
0
;
RankTwoTensor
e_tot
=
_strain_increment
[
_qp
]
/
_dt
;
RankTwoTensor
e_in
=
(
_
inelastic_strain
[
_qp
]
-
_inelastic_strain_old
[
_qp
])
/
_dt
;
RankTwoTensor
e_in
=
(
_
viscous_strain_incr
[
_qp
]
+
_plastic_strain_incr
[
_qp
])
/
_dt
;
_poro_mech
[
_qp
]
=
_biot
[
_qp
]
*
e_tot
.
trace
()
+
(
1
.
0
-
_biot
[
_qp
])
*
e_in
.
trace
();
_poro_mech_jac
[
_qp
]
=
_biot
[
_qp
]
+
(
1
.
0
-
_biot
[
_qp
])
*
(
1
.
0
-
K_cto
/
_K
[
_qp
]);
...
...
src/materials/LynxHydroConstant.C
View file @
31ef9294
...
...
@@ -27,7 +27,7 @@ InputParameters
validParams
<
LynxHydroConstant
>
()
{
InputParameters
params
=
validParams
<
LynxHydroBase
>
();
params
.
addClassDescription
(
"Constant
thermal
properties."
);
params
.
addClassDescription
(
"Constant
hydraulic
properties."
);
params
.
addRequiredParam
<
std
::
vector
<
Real
>>
(
"permeability"
,
"The permeability of the matrix."
);
params
.
addRequiredParam
<
std
::
vector
<
Real
>>
(
"fluid_viscosity"
,
"The viscosity of the fluid."
);
params
.
addParam
<
std
::
vector
<
Real
>>
(
"fluid_modulus"
,
"The bulk modulus of the fluid phase."
);
...
...
test/tests/hydro_mech/mandel.i
View file @
31ef9294
...
...
@@ -42,21 +42,21 @@
variable
=
disp_x
component
=
0
displacements
=
'
disp_x
disp_y
disp_z
'
fluid_pressure
=
pf
fluid_pressure
=
'
pf
'
[
..
/
]
[
.
/
mech_y
]
type
=
LynxSolidMomentum
variable
=
disp_y
component
=
1
displacements
=
'
disp_x
disp_y
disp_z
'
fluid_pressure
=
pf
fluid_pressure
=
'
pf
'
[
..
/
]
[
.
/
mech_z
]
type
=
LynxSolidMomentum
variable
=
disp_z
component
=
2
displacements
=
'
disp_x
disp_y
disp_z
'
fluid_pressure
=
pf
fluid_pressure
=
'
pf
'
[
..
/
]
[]
...
...
@@ -147,7 +147,7 @@
[
..
/
]
[
.
/
hydro_mat
]
type
=
LynxHydroConstant
porosity
=
porosity
porosity
=
'
porosity
'
fluid_modulus
=
8
solid_modulus
=
2.5
permeability
=
1.5e-03
...
...
@@ -276,4 +276,4 @@
interval
=
3
type
=
CSV
[
..
/
]
[]
\ No newline at end of file
[]
test/tests/hydro_mech/tests
View file @
31ef9294
#[Tests]
# [./mandel]
# type = 'Exodiff'
# input = 'mandel.i'
# exodiff = 'mandel_out.e'
# [../]
#[]
\ No newline at end of file
[Tests]
[./mandel]
type = 'Exodiff'
input = 'mandel.i'
exodiff = 'mandel_out.e'
[../]
[]
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