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
Özgür Ozan Sen
ogs
Commits
abe3174b
Commit
abe3174b
authored
8 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[PCS] Corrected the computation of velocity for HeatConduction
parent
0fe97b02
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/HeatConduction/HeatConductionFEM.h
+26
-3
26 additions, 3 deletions
ProcessLib/HeatConduction/HeatConductionFEM.h
ProcessLib/HeatConduction/HeatConductionProcess.cpp
+9
-0
9 additions, 0 deletions
ProcessLib/HeatConduction/HeatConductionProcess.cpp
Tests/Data
+1
-1
1 addition, 1 deletion
Tests/Data
with
36 additions
and
4 deletions
ProcessLib/HeatConduction/HeatConductionFEM.h
+
26
−
3
View file @
abe3174b
...
...
@@ -116,10 +116,33 @@ public:
local_M
.
noalias
()
+=
sm
.
N
.
transpose
()
*
density
*
heat_capacity
*
sm
.
N
*
sm
.
detJ
*
wp
.
getWeight
()
*
sm
.
integralMeasure
;
}
}
void
computeSecondaryVariableConcrete
(
const
double
t
,
std
::
vector
<
double
>
const
&
local_x
)
override
{
auto
const
local_matrix_size
=
local_x
.
size
();
// This assertion is valid only if all nodal d.o.f. use the same shape
// matrices.
assert
(
local_matrix_size
==
ShapeFunction
::
NPOINTS
*
NUM_NODAL_DOF
);
unsigned
const
n_integration_points
=
_integration_method
.
getNumberOfPoints
();
SpatialPosition
pos
;
pos
.
setElementID
(
_element
.
getID
());
const
auto
local_x_vec
=
MathLib
::
toVector
<
NodalVectorType
>
(
local_x
,
local_matrix_size
);
for
(
unsigned
ip
=
0
;
ip
<
n_integration_points
;
ip
++
)
{
pos
.
setIntegrationPoint
(
ip
);
auto
const
&
sm
=
_shape_matrices
[
ip
];
auto
const
k
=
_process_data
.
thermal_conductivity
(
t
,
pos
)[
0
];
// heat flux only computed for output.
GlobalDimVectorType
const
heat_flux
=
-
k
*
sm
.
dNdx
*
Eigen
::
Map
<
const
NodalVectorType
>
(
local_x
.
data
(),
ShapeFunction
::
NPOINTS
);
GlobalDimVectorType
const
heat_flux
=
-
k
*
sm
.
dNdx
*
local_x_vec
;
for
(
unsigned
d
=
0
;
d
<
GlobalDim
;
++
d
)
{
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/HeatConduction/HeatConductionProcess.cpp
+
9
−
0
View file @
abe3174b
...
...
@@ -96,5 +96,14 @@ void HeatConductionProcess::assembleWithJacobianConcreteProcess(
dx_dx
,
M
,
K
,
b
,
Jac
);
}
void
HeatConductionProcess
::
computeSecondaryVariableConcrete
(
const
double
t
,
GlobalVector
const
&
x
)
{
DBUG
(
"Compute the velocity for LiquidFlowProcess."
);
GlobalExecutor
::
executeMemberOnDereferenced
(
&
HeatConductionLocalAssemblerInterface
::
computeSecondaryVariable
,
_local_assemblers
,
*
_local_to_global_index_map
,
t
,
x
);
}
}
// namespace HeatConduction
}
// namespace ProcessLib
This diff is collapsed.
Click to expand it.
Data
@
8806cf31
Compare
782b7f47
...
8806cf31
Subproject commit
782b7f47fbf89f7ed72dbe034f372966a680c953
Subproject commit
8806cf31aa300ee9c631c73674e218e9a60297cc
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