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
Karsten Rink
ogs
Commits
70f9e015
Commit
70f9e015
authored
5 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[PL] THM; split push back btw. init and postTS.
parent
a77ad123
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h
+13
-3
13 additions, 3 deletions
ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h
ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcess.cpp
+8
-0
8 additions, 0 deletions
...sLib/ThermoHydroMechanics/ThermoHydroMechanicsProcess.cpp
with
21 additions
and
3 deletions
ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsFEM.h
+
13
−
3
View file @
70f9e015
...
@@ -88,9 +88,19 @@ public:
...
@@ -88,9 +88,19 @@ public:
std
::
vector
<
double
>&
local_rhs_data
,
std
::
vector
<
double
>&
local_rhs_data
,
std
::
vector
<
double
>&
local_Jac_data
)
override
;
std
::
vector
<
double
>&
local_Jac_data
)
override
;
void
preTimestepConcrete
(
std
::
vector
<
double
>
const
&
/*local_x*/
,
void
initializeConcrete
()
override
double
const
/*t*/
,
{
double
const
/*delta_t*/
)
override
unsigned
const
n_integration_points
=
_integration_method
.
getNumberOfPoints
();
for
(
unsigned
ip
=
0
;
ip
<
n_integration_points
;
ip
++
)
{
_ip_data
[
ip
].
pushBackState
();
}
}
void
postTimestepConcrete
(
std
::
vector
<
double
>
const
&
/*local_x*/
)
override
{
{
unsigned
const
n_integration_points
=
unsigned
const
n_integration_points
=
_integration_method
.
getNumberOfPoints
();
_integration_method
.
getNumberOfPoints
();
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/ThermoHydroMechanics/ThermoHydroMechanicsProcess.cpp
+
8
−
0
View file @
70f9e015
...
@@ -202,6 +202,14 @@ void ThermoHydroMechanicsProcess<DisplacementDim>::initializeConcreteProcess(
...
@@ -202,6 +202,14 @@ void ThermoHydroMechanicsProcess<DisplacementDim>::initializeConcreteProcess(
MeshLib
::
getOrCreateMeshProperty
<
double
>
(
MeshLib
::
getOrCreateMeshProperty
<
double
>
(
const_cast
<
MeshLib
::
Mesh
&>
(
mesh
),
"temperature_interpolated"
,
const_cast
<
MeshLib
::
Mesh
&>
(
mesh
),
"temperature_interpolated"
,
MeshLib
::
MeshItemType
::
Node
,
1
);
MeshLib
::
MeshItemType
::
Node
,
1
);
// Initialize local assemblers after all variables have been set.
const
int
process_id
=
0
;
ProcessLib
::
ProcessVariable
const
&
pv
=
getProcessVariables
(
process_id
)[
0
];
GlobalExecutor
::
executeSelectedMemberOnDereferenced
(
&
LocalAssemblerInterface
::
initialize
,
_local_assemblers
,
pv
.
getActiveElementIDs
(),
*
_local_to_global_index_map
);
}
}
template
<
int
DisplacementDim
>
template
<
int
DisplacementDim
>
...
...
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