Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chaofan Chen
ogs
Commits
8d1348c4
Commit
8d1348c4
authored
1 year ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[LIE/HM] Removed the old output of nodal aperture and jump
parent
afe904ea
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/LIE/HydroMechanics/HydroMechanicsProcess.cpp
+0
-54
0 additions, 54 deletions
ProcessLib/LIE/HydroMechanics/HydroMechanicsProcess.cpp
ProcessLib/LIE/HydroMechanics/HydroMechanicsProcessData.h
+0
-2
0 additions, 2 deletions
ProcessLib/LIE/HydroMechanics/HydroMechanicsProcessData.h
with
0 additions
and
56 deletions
ProcessLib/LIE/HydroMechanics/HydroMechanicsProcess.cpp
+
0
−
54
View file @
8d1348c4
...
...
@@ -340,18 +340,6 @@ void HydroMechanicsProcess<GlobalDim>::initializeConcreteProcess(
_process_data
.
mesh_prop_fracture_shear_failure
=
mesh_prop_fracture_shear_failure
;
auto
mesh_prop_nodal_w
=
MeshLib
::
getOrCreateMeshProperty
<
double
>
(
const_cast
<
MeshLib
::
Mesh
&>
(
mesh
),
"nodal_w"
,
MeshLib
::
MeshItemType
::
Node
,
GlobalDim
);
mesh_prop_nodal_w
->
resize
(
mesh
.
getNumberOfNodes
()
*
GlobalDim
);
_process_data
.
mesh_prop_nodal_w
=
mesh_prop_nodal_w
;
auto
mesh_prop_nodal_b
=
MeshLib
::
getOrCreateMeshProperty
<
double
>
(
const_cast
<
MeshLib
::
Mesh
&>
(
mesh
),
"nodal_aperture"
,
MeshLib
::
MeshItemType
::
Node
,
1
);
mesh_prop_nodal_b
->
resize
(
mesh
.
getNumberOfNodes
());
_process_data
.
mesh_prop_nodal_b
=
mesh_prop_nodal_b
;
auto
mesh_prop_nodal_p
=
MeshLib
::
getOrCreateMeshProperty
<
double
>
(
const_cast
<
MeshLib
::
Mesh
&>
(
mesh
),
"pressure_interpolated"
,
MeshLib
::
MeshItemType
::
Node
,
1
);
...
...
@@ -454,48 +442,6 @@ void HydroMechanicsProcess<GlobalDim>::postTimestepConcreteProcess(
(
*
x
[
process_id
])[
global_index
];
}
}
// compute nodal w and aperture
auto
const
&
R
=
_process_data
.
fracture_property
->
R
;
auto
const
&
b0
=
_process_data
.
fracture_property
->
aperture0
;
MeshLib
::
PropertyVector
<
double
>&
vec_w
=
*
_process_data
.
mesh_prop_nodal_w
;
MeshLib
::
PropertyVector
<
double
>&
vec_b
=
*
_process_data
.
mesh_prop_nodal_b
;
auto
compute_nodal_aperture
=
[
&
](
std
::
size_t
const
node_id
,
double
const
w_n
)
{
// skip aperture computation for element-wise defined b0 because there
// are jumps on the nodes between the element's values.
if
(
dynamic_cast
<
ParameterLib
::
MeshElementParameter
<
double
>
const
*>
(
&
b0
))
{
return
std
::
numeric_limits
<
double
>::
quiet_NaN
();
}
ParameterLib
::
SpatialPosition
x
;
x
.
setNodeID
(
node_id
);
return
w_n
+
b0
(
/*time independent*/
0
,
x
)[
0
];
};
Eigen
::
VectorXd
g
(
GlobalDim
);
Eigen
::
VectorXd
w
(
GlobalDim
);
for
(
MeshLib
::
Node
const
*
node
:
_vec_fracture_nodes
)
{
auto
const
node_id
=
node
->
getID
();
g
.
setZero
();
for
(
int
k
=
0
;
k
<
GlobalDim
;
k
++
)
{
g
[
k
]
=
mesh_prop_g
[
node_id
*
GlobalDim
+
k
];
}
w
.
noalias
()
=
R
*
g
;
for
(
int
k
=
0
;
k
<
GlobalDim
;
k
++
)
{
vec_w
[
node_id
*
GlobalDim
+
k
]
=
w
[
k
];
}
vec_b
[
node_id
]
=
compute_nodal_aperture
(
node_id
,
w
[
GlobalDim
-
1
]);
}
}
template
<
int
GlobalDim
>
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/LIE/HydroMechanics/HydroMechanicsProcessData.h
+
0
−
2
View file @
8d1348c4
...
...
@@ -119,8 +119,6 @@ struct HydroMechanicsProcessData
MeshLib
::
PropertyVector
<
double
>*
mesh_prop_b
=
nullptr
;
MeshLib
::
PropertyVector
<
double
>*
mesh_prop_k_f
=
nullptr
;
MeshLib
::
PropertyVector
<
double
>*
mesh_prop_fracture_shear_failure
=
nullptr
;
MeshLib
::
PropertyVector
<
double
>*
mesh_prop_nodal_w
=
nullptr
;
MeshLib
::
PropertyVector
<
double
>*
mesh_prop_nodal_b
=
nullptr
;
MeshLib
::
PropertyVector
<
double
>*
mesh_prop_nodal_p
=
nullptr
;
MeshLib
::
PropertyVector
<
double
>*
mesh_prop_nodal_forces
=
nullptr
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment