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
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
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
Mojtaba Abdolkhani
ogs
Commits
98de4147
Commit
98de4147
authored
3 years ago
by
renchao.lu
Committed by
Dmitri Naumov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[PL/CT] incorporate the effect of change of storage capacity.
parent
9276e0a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessLib/ComponentTransport/ComponentTransportFEM.h
+10
-3
10 additions, 3 deletions
ProcessLib/ComponentTransport/ComponentTransportFEM.h
with
10 additions
and
3 deletions
ProcessLib/ComponentTransport/ComponentTransportFEM.h
+
10
−
3
View file @
98de4147
...
...
@@ -194,8 +194,8 @@ private:
virtual
void
assembleReactionEquationConcrete
(
double
const
t
,
double
const
dt
,
Eigen
::
VectorXd
const
&
local_x
,
std
::
vector
<
double
>&
local_M_data
,
std
::
vector
<
double
>&
local_
b
_data
,
int
const
transport_process_id
)
=
0
;
std
::
vector
<
double
>&
local_M_data
,
std
::
vector
<
double
>&
local_
K
_data
,
std
::
vector
<
double
>&
local_b_data
,
int
const
transport_process_id
)
=
0
;
protected
:
CoupledSolutionsForStaggeredScheme
*
_coupled_solutions
{
nullptr
};
...
...
@@ -1015,7 +1015,8 @@ public:
void
assembleReactionEquationConcrete
(
double
const
t
,
double
const
dt
,
Eigen
::
VectorXd
const
&
local_x
,
std
::
vector
<
double
>&
local_M_data
,
std
::
vector
<
double
>&
local_b_data
,
std
::
vector
<
double
>&
local_M_data
,
std
::
vector
<
double
>&
local_K_data
,
std
::
vector
<
double
>&
local_b_data
,
int
const
transport_process_id
)
override
{
auto
const
local_C
=
local_x
.
template
segment
<
concentration_size
>(
...
...
@@ -1024,6 +1025,8 @@ public:
auto
local_M
=
MathLib
::
createZeroedMatrix
<
LocalBlockMatrixType
>
(
local_M_data
,
concentration_size
,
concentration_size
);
auto
local_K
=
MathLib
::
createZeroedMatrix
<
LocalBlockMatrixType
>
(
local_K_data
,
concentration_size
,
concentration_size
);
auto
local_b
=
MathLib
::
createZeroedVector
<
LocalVectorType
>
(
local_b_data
,
concentration_size
);
...
...
@@ -1056,6 +1059,8 @@ public:
vars
[
static_cast
<
int
>
(
MaterialPropertyLib
::
Variable
::
concentration
)]
=
C_int_pt
;
auto
const
porosity_dot
=
(
porosity
-
porosity_prev
)
/
dt
;
// porosity
{
vars_prev
[
static_cast
<
int
>
(
...
...
@@ -1071,6 +1076,8 @@ public:
local_M
.
noalias
()
+=
w
*
N
.
transpose
()
*
porosity
*
N
;
local_K
.
noalias
()
+=
w
*
N
.
transpose
()
*
porosity_dot
*
N
;
auto
const
C_post_int_pt
=
_process_data
.
chemical_solver_interface
->
getConcentration
(
component_id
,
chemical_system_id
);
...
...
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