Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
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
MostafaMollaali
dynamic
Commits
ba965c40
Commit
ba965c40
authored
7 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[PCS] Added a member to Process to set coupling terms to all local assemblers
parent
576d8d11
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ProcessLib/LiquidFlow/LiquidFlowProcess.cpp
+19
-11
19 additions, 11 deletions
ProcessLib/LiquidFlow/LiquidFlowProcess.cpp
ProcessLib/LiquidFlow/LiquidFlowProcess.h
+7
-5
7 additions, 5 deletions
ProcessLib/LiquidFlow/LiquidFlowProcess.h
ProcessLib/Process.h
+1
-0
1 addition, 0 deletions
ProcessLib/Process.h
with
27 additions
and
16 deletions
ProcessLib/LiquidFlow/LiquidFlowProcess.cpp
+
19
−
11
View file @
ba965c40
...
...
@@ -66,18 +66,20 @@ void LiquidFlowProcess::initializeConcreteProcess(
pv
.
getShapeFunctionOrder
(),
_local_assemblers
,
mesh
.
isAxiallySymmetric
(),
integration_order
,
_gravitational_axis_id
,
_gravitational_acceleration
,
_reference_temperature
,
*
_material_properties
);
*
_material_properties
,
this
->
_coupling_term
);
_secondary_variables
.
addSecondaryVariable
(
"darcy_velocity"
,
makeExtrapolator
(
mesh
.
getDimension
(),
getExtrapolator
(),
_local_assemblers
,
makeExtrapolator
(
mesh
.
getDimension
(),
getExtrapolator
(),
_local_assemblers
,
&
LiquidFlowLocalAssemblerInterface
::
getIntPtDarcyVelocity
));
}
void
LiquidFlowProcess
::
assembleConcreteProcess
(
const
double
t
,
GlobalVector
const
&
x
,
GlobalMatrix
&
M
,
GlobalMatrix
&
K
,
GlobalVector
&
b
)
void
LiquidFlowProcess
::
assembleConcreteProcess
(
const
double
t
,
GlobalVector
const
&
x
,
GlobalMatrix
&
M
,
GlobalMatrix
&
K
,
GlobalVector
&
b
)
{
DBUG
(
"Assemble LiquidFlowProcess."
);
// Call global assembler for each local assembly item.
...
...
@@ -100,15 +102,21 @@ void LiquidFlowProcess::assembleWithJacobianConcreteProcess(
dx_dx
,
M
,
K
,
b
,
Jac
,
_coupling_term
);
}
void
LiquidFlowProcess
::
computeSecondaryVariableConcrete
(
const
double
t
,
GlobalVector
const
&
x
)
void
LiquidFlowProcess
::
computeSecondaryVariableConcrete
(
const
double
t
,
GlobalVector
const
&
x
)
{
DBUG
(
"Compute the velocity for LiquidFlowProcess."
);
GlobalExecutor
::
executeMemberOnDereferenced
(
&
LiquidFlowLocalAssemblerInterface
::
computeSecondaryVariable
,
_local_assemblers
,
*
_local_to_global_index_map
,
t
,
x
,
_coupling_term
);
_local_assemblers
,
*
_local_to_global_index_map
,
t
,
x
,
_coupling_term
);
}
void
LiquidFlowProcess
::
setStaggeredCouplingTermToLocalAssemblers
()
{
DBUG
(
"Compute the velocity for LiquidFlowProcess."
);
GlobalExecutor
::
executeMemberOnDereferenced
(
&
LiquidFlowLocalAssemblerInterface
::
setStaggeredCouplingTerm
,
_local_assemblers
,
_coupling_term
);
}
}
// end of namespace
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/LiquidFlow/LiquidFlowProcess.h
+
7
−
5
View file @
ba965c40
...
...
@@ -73,8 +73,8 @@ public:
double
const
reference_temperature
,
BaseLib
::
ConfigTree
const
&
config
);
void
computeSecondaryVariableConcrete
(
double
const
t
,
GlobalVector
const
&
x
)
override
;
void
computeSecondaryVariableConcrete
(
double
const
t
,
GlobalVector
const
&
x
)
override
;
bool
isLinear
()
const
override
{
return
true
;
}
int
getGravitationalAxisID
()
const
{
return
_gravitational_axis_id
;
}
...
...
@@ -88,14 +88,16 @@ public:
return
_material_properties
.
get
();
}
void
setStaggeredCouplingTermToLocalAssemblers
()
override
;
private
:
void
initializeConcreteProcess
(
NumLib
::
LocalToGlobalIndexMap
const
&
dof_table
,
MeshLib
::
Mesh
const
&
mesh
,
unsigned
const
integration_order
)
override
;
void
assembleConcreteProcess
(
const
double
t
,
GlobalVector
const
&
x
,
GlobalMatrix
&
M
,
GlobalMatrix
&
K
,
GlobalVector
&
b
)
override
;
void
assembleConcreteProcess
(
const
double
t
,
GlobalVector
const
&
x
,
GlobalMatrix
&
M
,
GlobalMatrix
&
K
,
GlobalVector
&
b
)
override
;
void
assembleWithJacobianConcreteProcess
(
const
double
t
,
GlobalVector
const
&
x
,
GlobalVector
const
&
xdot
,
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/Process.h
+
1
−
0
View file @
ba965c40
...
...
@@ -75,6 +75,7 @@ public:
_coupling_term
=
coupling_term
;
}
virtual
void
setStaggeredCouplingTermToLocalAssemblers
()
{}
void
assemble
(
const
double
t
,
GlobalVector
const
&
x
,
GlobalMatrix
&
M
,
GlobalMatrix
&
K
,
GlobalVector
&
b
)
final
;
...
...
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