Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs-feliks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Feliks Kiszkurno
ogs-feliks
Commits
2f68e689
Commit
2f68e689
authored
11 months ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[PL/HT] Use shape matrix cache in HT assembler
parent
405921fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ProcessLib/HT/HTFEM.h
+7
-2
7 additions, 2 deletions
ProcessLib/HT/HTFEM.h
ProcessLib/HT/MonolithicHTFEM.h
+5
-1
5 additions, 1 deletion
ProcessLib/HT/MonolithicHTFEM.h
ProcessLib/HT/StaggeredHTFEM-impl.h
+10
-2
10 additions, 2 deletions
ProcessLib/HT/StaggeredHTFEM-impl.h
with
22 additions
and
5 deletions
ProcessLib/HT/HTFEM.h
+
7
−
2
View file @
2f68e689
...
...
@@ -91,7 +91,8 @@ public:
Eigen
::
Map
<
const
Eigen
::
RowVectorXd
>
getShapeMatrix
(
const
unsigned
integration_point
)
const
override
{
auto
const
&
N
=
_ip_data
[
integration_point
].
N
;
auto
const
&
N
=
_shape_matrix_cache
.
NsHigherOrder
<
typename
ShapeFunction
::
MeshElement
>
()[
integration_point
];
// assumes N is stored contiguously in memory
return
Eigen
::
Map
<
const
Eigen
::
RowVectorXd
>
(
N
.
data
(),
N
.
size
());
...
...
@@ -273,11 +274,15 @@ protected:
*
_process_data
.
media_map
.
getMedium
(
_element
.
getID
());
auto
const
&
liquid_phase
=
medium
.
phase
(
"AqueousLiquid"
);
auto
const
&
Ns
=
_shape_matrix_cache
.
NsHigherOrder
<
typename
ShapeFunction
::
MeshElement
>
();
for
(
unsigned
ip
=
0
;
ip
<
n_integration_points
;
++
ip
)
{
auto
const
&
ip_data
=
_ip_data
[
ip
];
auto
const
&
N
=
ip_data
.
N
;
auto
const
&
dNdx
=
ip_data
.
dNdx
;
auto
const
&
N
=
Ns
[
ip
];
pos
.
setIntegrationPoint
(
ip
);
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/HT/MonolithicHTFEM.h
+
5
−
1
View file @
2f68e689
...
...
@@ -123,13 +123,17 @@ public:
double
average_velocity_norm
=
0.0
;
ip_flux_vector
.
reserve
(
n_integration_points
);
auto
const
&
Ns
=
this
->
_shape_matrix_cache
.
template
NsHigherOrder
<
typename
ShapeFunction
::
MeshElement
>();
for
(
unsigned
ip
(
0
);
ip
<
n_integration_points
;
ip
++
)
{
pos
.
setIntegrationPoint
(
ip
);
auto
const
&
ip_data
=
this
->
_ip_data
[
ip
];
auto
const
&
N
=
ip_data
.
N
;
auto
const
&
dNdx
=
ip_data
.
dNdx
;
auto
const
&
N
=
Ns
[
ip
];
auto
const
&
w
=
ip_data
.
integration_weight
;
double
T_int_pt
=
0.0
;
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/HT/StaggeredHTFEM-impl.h
+
10
−
2
View file @
2f68e689
...
...
@@ -79,13 +79,17 @@ void StaggeredHTFEM<ShapeFunction, GlobalDim>::assembleHydraulicEquation(
unsigned
const
n_integration_points
=
this
->
_integration_method
.
getNumberOfPoints
();
auto
const
&
Ns
=
this
->
_shape_matrix_cache
.
template
NsHigherOrder
<
typename
ShapeFunction
::
MeshElement
>();
for
(
unsigned
ip
(
0
);
ip
<
n_integration_points
;
ip
++
)
{
pos
.
setIntegrationPoint
(
ip
);
auto
const
&
ip_data
=
this
->
_ip_data
[
ip
];
auto
const
&
N
=
ip_data
.
N
;
auto
const
&
dNdx
=
ip_data
.
dNdx
;
auto
const
&
N
=
Ns
[
ip
];
auto
const
&
w
=
ip_data
.
integration_weight
;
double
p_int_pt
=
0.0
;
...
...
@@ -208,13 +212,17 @@ void StaggeredHTFEM<ShapeFunction, GlobalDim>::assembleHeatTransportEquation(
double
average_velocity_norm
=
0.0
;
ip_flux_vector
.
reserve
(
n_integration_points
);
auto
const
&
Ns
=
this
->
_shape_matrix_cache
.
template
NsHigherOrder
<
typename
ShapeFunction
::
MeshElement
>();
for
(
unsigned
ip
(
0
);
ip
<
n_integration_points
;
ip
++
)
{
pos
.
setIntegrationPoint
(
ip
);
auto
const
&
ip_data
=
this
->
_ip_data
[
ip
];
auto
const
&
N
=
ip_data
.
N
;
auto
const
&
dNdx
=
ip_data
.
dNdx
;
auto
const
&
N
=
Ns
[
ip
];
auto
const
&
w
=
ip_data
.
integration_weight
;
double
p_at_xi
=
0.
;
...
...
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