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
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
Yuhao Liu
ogs
Commits
70336228
Commit
70336228
authored
3 years ago
by
wenqing
Committed by
Dmitri Naumov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[LiquidFlow] Use explicit type for some matrix and vector definition.
parent
214a6e26
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/LiquidFlow/LiquidFlowLocalAssembler-impl.h
+40
-64
40 additions, 64 deletions
ProcessLib/LiquidFlow/LiquidFlowLocalAssembler-impl.h
ProcessLib/LiquidFlow/LiquidFlowLocalAssembler.h
+12
-11
12 additions, 11 deletions
ProcessLib/LiquidFlow/LiquidFlowLocalAssembler.h
with
52 additions
and
75 deletions
ProcessLib/LiquidFlow/LiquidFlowLocalAssembler-impl.h
+
40
−
64
View file @
70336228
...
@@ -41,7 +41,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -41,7 +41,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
vars
[
static_cast
<
int
>
(
MaterialPropertyLib
::
Variable
::
phase_pressure
)]
=
vars
[
static_cast
<
int
>
(
MaterialPropertyLib
::
Variable
::
phase_pressure
)]
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
std
::
numeric_limits
<
double
>::
quiet_NaN
();
auto
const
permeability
=
DimMatrixType
const
permeability
=
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
vars
,
pos
,
t
,
dt
));
vars
,
pos
,
t
,
dt
));
...
@@ -96,7 +96,7 @@ LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::getFlux(
...
@@ -96,7 +96,7 @@ LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::getFlux(
vars
[
static_cast
<
int
>
(
MaterialPropertyLib
::
Variable
::
phase_pressure
)]
=
vars
[
static_cast
<
int
>
(
MaterialPropertyLib
::
Variable
::
phase_pressure
)]
=
pressure
;
pressure
;
auto
const
intrinsic_permeability
=
DimMatrixType
const
intrinsic_permeability
=
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
vars
,
pos
,
t
,
dt
));
vars
,
pos
,
t
,
dt
));
...
@@ -106,19 +106,12 @@ LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::getFlux(
...
@@ -106,19 +106,12 @@ LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::getFlux(
Eigen
::
Vector3d
flux
(
0.0
,
0.0
,
0.0
);
Eigen
::
Vector3d
flux
(
0.0
,
0.0
,
0.0
);
auto
const
flux_local
=
auto
const
flux_local
=
-
intrinsic_permeability
/
viscosity
*
shape_matrices
.
dNdx
*
(
-
intrinsic_permeability
/
viscosity
*
shape_matrices
.
dNdx
*
Eigen
::
Map
<
const
NodalVectorType
>
(
local_x
.
data
(),
local_x
.
size
());
Eigen
::
Map
<
const
NodalVectorType
>
(
local_x
.
data
(),
local_x
.
size
()))
.
eval
();
if
(
GlobalDim
!=
_element
.
getDimension
())
flux
.
head
<
GlobalDim
>
()
=
{
_process_data
.
element_rotation_matrices
[
_element
.
getID
()]
*
flux_local
;
flux
.
head
<
GlobalDim
>
()
=
_process_data
.
element_rotation_matrices
[
_element
.
getID
()]
*
flux_local
.
eval
();
}
else
{
flux
.
head
<
ShapeFunction
::
DIM
>
()
=
flux_local
.
eval
();
}
return
flux
;
return
flux
;
}
}
...
@@ -156,12 +149,9 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -156,12 +149,9 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
medium
[
MaterialPropertyLib
::
PropertyType
::
reference_temperature
]
medium
[
MaterialPropertyLib
::
PropertyType
::
reference_temperature
]
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
DimVectorType
specific_body_force_vector
=
DimVectorType
const
projected_body_force_vector
=
GlobalDim
==
_element
.
getDimension
()
_process_data
.
element_rotation_matrices
[
_element
.
getID
()].
transpose
()
*
?
_process_data
.
specific_body_force
_process_data
.
specific_body_force
;
:
_process_data
.
element_rotation_matrices
[
_element
.
getID
()]
.
transpose
()
*
_process_data
.
specific_body_force
;
for
(
unsigned
ip
=
0
;
ip
<
n_integration_points
;
ip
++
)
for
(
unsigned
ip
=
0
;
ip
<
n_integration_points
;
ip
++
)
{
{
...
@@ -200,7 +190,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -200,7 +190,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
pos
.
setIntegrationPoint
(
ip
);
pos
.
setIntegrationPoint
(
ip
);
auto
const
permeability
=
DimMatrixType
const
permeability
=
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
vars
,
pos
,
t
,
dt
));
vars
,
pos
,
t
,
dt
));
...
@@ -208,7 +198,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -208,7 +198,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
// Assemble Laplacian, K, and RHS by the gravitational term
// Assemble Laplacian, K, and RHS by the gravitational term
LaplacianGravityVelocityCalculator
::
calculateLaplacianAndGravityTerm
(
LaplacianGravityVelocityCalculator
::
calculateLaplacianAndGravityTerm
(
local_K
,
local_b
,
ip_data
,
permeability
,
viscosity
,
fluid_density
,
local_K
,
local_b
,
ip_data
,
permeability
,
viscosity
,
fluid_density
,
specific
_body_force_vector
,
_process_data
.
has_gravity
);
projected
_body_force_vector
,
_process_data
.
has_gravity
);
}
}
}
}
...
@@ -222,12 +212,12 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -222,12 +212,12 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
{
{
if
(
is_scalar_permeability
)
if
(
is_scalar_permeability
)
{
// isotropic or 1D problem.
{
// isotropic or 1D problem.
computeDarcyVelocity
Specific
<
IsotropicCalculator
>
(
compute
Projected
DarcyVelocity
<
IsotropicCalculator
>
(
t
,
dt
,
local_x
,
pos
,
darcy_velocity_at_ips
);
t
,
dt
,
local_x
,
pos
,
darcy_velocity_at_ips
);
}
}
else
else
{
{
computeDarcyVelocity
Specific
<
AnisotropicCalculator
>
(
compute
Projected
DarcyVelocity
<
AnisotropicCalculator
>
(
t
,
dt
,
local_x
,
pos
,
darcy_velocity_at_ips
);
t
,
dt
,
local_x
,
pos
,
darcy_velocity_at_ips
);
}
}
}
}
...
@@ -263,7 +253,7 @@ LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -263,7 +253,7 @@ LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
vars
[
static_cast
<
int
>
(
MaterialPropertyLib
::
Variable
::
phase_pressure
)]
=
vars
[
static_cast
<
int
>
(
MaterialPropertyLib
::
Variable
::
phase_pressure
)]
=
std
::
numeric_limits
<
double
>::
quiet_NaN
();
std
::
numeric_limits
<
double
>::
quiet_NaN
();
auto
const
permeability
=
DimMatrixType
const
permeability
=
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
vars
,
pos
,
t
,
dt
));
vars
,
pos
,
t
,
dt
));
...
@@ -287,10 +277,10 @@ template <typename ShapeFunction, typename IntegrationMethod, int GlobalDim>
...
@@ -287,10 +277,10 @@ template <typename ShapeFunction, typename IntegrationMethod, int GlobalDim>
template
<
typename
LaplacianGravityVelocityCalculator
,
template
<
typename
LaplacianGravityVelocityCalculator
,
typename
VelocityCacheType
>
typename
VelocityCacheType
>
void
LiquidFlowLocalAssembler
<
ShapeFunction
,
IntegrationMethod
,
GlobalDim
>::
void
LiquidFlowLocalAssembler
<
ShapeFunction
,
IntegrationMethod
,
GlobalDim
>::
computeDarcyVelocity
Specific
(
const
double
t
,
const
double
dt
,
compute
Projected
DarcyVelocity
(
std
::
vector
<
double
>
const
&
local_x
,
const
double
t
,
const
double
dt
,
std
::
vector
<
double
>
const
&
local_x
,
ParameterLib
::
SpatialPosition
const
&
pos
,
ParameterLib
::
SpatialPosition
const
&
pos
,
VelocityCacheType
&
darcy_velocity_at_ips
)
const
VelocityCacheType
&
darcy_velocity_at_ips
)
const
{
{
auto
const
local_matrix_size
=
local_x
.
size
();
auto
const
local_matrix_size
=
local_x
.
size
();
assert
(
local_matrix_size
==
ShapeFunction
::
NPOINTS
);
assert
(
local_matrix_size
==
ShapeFunction
::
NPOINTS
);
...
@@ -309,12 +299,9 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -309,12 +299,9 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
medium
[
MaterialPropertyLib
::
PropertyType
::
reference_temperature
]
medium
[
MaterialPropertyLib
::
PropertyType
::
reference_temperature
]
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
Eigen
::
VectorXd
specific_body_force_vector
=
DimVectorType
const
projected_body_force_vector
=
GlobalDim
==
_element
.
getDimension
()
_process_data
.
element_rotation_matrices
[
_element
.
getID
()].
transpose
()
*
?
_process_data
.
specific_body_force
_process_data
.
specific_body_force
;
:
_process_data
.
element_rotation_matrices
[
_element
.
getID
()]
.
transpose
()
*
_process_data
.
specific_body_force
;
for
(
unsigned
ip
=
0
;
ip
<
n_integration_points
;
ip
++
)
for
(
unsigned
ip
=
0
;
ip
<
n_integration_points
;
ip
++
)
{
{
...
@@ -333,7 +320,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -333,7 +320,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
liquid_phase
[
MaterialPropertyLib
::
PropertyType
::
viscosity
]
liquid_phase
[
MaterialPropertyLib
::
PropertyType
::
viscosity
]
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
.
template
value
<
double
>(
vars
,
pos
,
t
,
dt
);
auto
const
permeability
=
DimMatrixType
const
permeability
=
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
MaterialPropertyLib
::
formEigenTensor
<
ShapeFunction
::
DIM
>
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
medium
[
MaterialPropertyLib
::
PropertyType
::
permeability
].
value
(
vars
,
pos
,
t
,
dt
));
vars
,
pos
,
t
,
dt
));
...
@@ -341,18 +328,11 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -341,18 +328,11 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
Eigen
::
VectorXd
const
velocity_at_ip
=
Eigen
::
VectorXd
const
velocity_at_ip
=
LaplacianGravityVelocityCalculator
::
calculateVelocity
(
LaplacianGravityVelocityCalculator
::
calculateVelocity
(
local_p_vec
,
ip_data
,
permeability
,
viscosity
,
fluid_density
,
local_p_vec
,
ip_data
,
permeability
,
viscosity
,
fluid_density
,
specific_body_force_vector
,
_process_data
.
has_gravity
);
projected_body_force_vector
,
_process_data
.
has_gravity
);
if
(
GlobalDim
!=
_element
.
getDimension
())
Eigen
::
MatrixXd
const
&
rotation_matrix
=
{
_process_data
.
element_rotation_matrices
[
_element
.
getID
()];
Eigen
::
MatrixXd
const
&
rotation_matrix
=
darcy_velocity_at_ips
.
col
(
ip
)
=
rotation_matrix
*
velocity_at_ip
;
_process_data
.
element_rotation_matrices
[
_element
.
getID
()];
darcy_velocity_at_ips
.
col
(
ip
)
=
rotation_matrix
*
velocity_at_ip
;
}
else
{
darcy_velocity_at_ips
.
col
(
ip
)
=
velocity_at_ip
;
}
}
}
}
}
...
@@ -363,9 +343,8 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -363,9 +343,8 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
MatrixXd
const
&
permeability
,
double
const
mu
,
DimMatrixType
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
double
const
rho_L
,
Eigen
::
VectorXd
const
&
specific_body_force
,
DimVectorType
const
&
specific_body_force
,
bool
const
has_gravity
)
bool
const
has_gravity
)
{
{
const
double
K
=
permeability
(
0
,
0
)
/
mu
;
const
double
K
=
permeability
(
0
,
0
)
/
mu
;
const
double
fac
=
K
*
ip_data
.
integration_weight
;
const
double
fac
=
K
*
ip_data
.
integration_weight
;
...
@@ -379,19 +358,18 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -379,19 +358,18 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
}
}
template
<
typename
ShapeFunction
,
typename
IntegrationMethod
,
int
GlobalDim
>
template
<
typename
ShapeFunction
,
typename
IntegrationMethod
,
int
GlobalDim
>
Eigen
::
VectorXd
Eigen
::
Matrix
<
double
,
ShapeFunction
::
DIM
,
1
>
LiquidFlowLocalAssembler
<
ShapeFunction
,
IntegrationMethod
,
GlobalDim
>::
LiquidFlowLocalAssembler
<
ShapeFunction
,
IntegrationMethod
,
GlobalDim
>::
IsotropicCalculator
::
calculateVelocity
(
IsotropicCalculator
::
calculateVelocity
(
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
MatrixXd
const
&
permeability
,
double
const
mu
,
DimMatrixType
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
double
const
rho_L
,
Eigen
::
VectorXd
const
&
specific_body_force
,
DimVectorType
const
&
specific_body_force
,
bool
const
has_gravity
)
bool
const
has_gravity
)
{
{
const
double
K
=
permeability
(
0
,
0
)
/
mu
;
const
double
K
=
permeability
(
0
,
0
)
/
mu
;
// Compute the velocity
// Compute the velocity
Eigen
::
Vector
Xd
velocity
=
-
K
*
ip_data
.
dNdx
*
local_p
;
Dim
Vector
Type
velocity
=
-
K
*
ip_data
.
dNdx
*
local_p
;
// gravity term
// gravity term
if
(
has_gravity
)
if
(
has_gravity
)
{
{
...
@@ -407,9 +385,8 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -407,9 +385,8 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
MatrixXd
const
&
permeability
,
double
const
mu
,
DimMatrixType
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
double
const
rho_L
,
Eigen
::
VectorXd
const
&
specific_body_force
,
DimVectorType
const
&
specific_body_force
,
bool
const
has_gravity
)
bool
const
has_gravity
)
{
{
const
double
fac
=
ip_data
.
integration_weight
/
mu
;
const
double
fac
=
ip_data
.
integration_weight
/
mu
;
local_K
.
noalias
()
+=
local_K
.
noalias
()
+=
...
@@ -423,18 +400,17 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
...
@@ -423,18 +400,17 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
}
}
template
<
typename
ShapeFunction
,
typename
IntegrationMethod
,
int
GlobalDim
>
template
<
typename
ShapeFunction
,
typename
IntegrationMethod
,
int
GlobalDim
>
Eigen
::
VectorXd
Eigen
::
Matrix
<
double
,
ShapeFunction
::
DIM
,
1
>
LiquidFlowLocalAssembler
<
ShapeFunction
,
IntegrationMethod
,
GlobalDim
>::
LiquidFlowLocalAssembler
<
ShapeFunction
,
IntegrationMethod
,
GlobalDim
>::
AnisotropicCalculator
::
calculateVelocity
(
AnisotropicCalculator
::
calculateVelocity
(
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
MatrixXd
const
&
permeability
,
double
const
mu
,
DimMatrixType
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
double
const
rho_L
,
Eigen
::
VectorXd
const
&
specific_body_force
,
DimVectorType
const
&
specific_body_force
,
bool
const
has_gravity
)
bool
const
has_gravity
)
{
{
// Compute the velocity
// Compute the velocity
Eigen
::
Vector
Xd
velocity
=
-
permeability
*
ip_data
.
dNdx
*
local_p
/
mu
;
Dim
Vector
Type
velocity
=
-
permeability
*
ip_data
.
dNdx
*
local_p
/
mu
;
// gravity term
// gravity term
if
(
has_gravity
)
if
(
has_gravity
)
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/LiquidFlow/LiquidFlowLocalAssembler.h
+
12
−
11
View file @
70336228
...
@@ -78,6 +78,7 @@ class LiquidFlowLocalAssembler : public LiquidFlowLocalAssemblerInterface
...
@@ -78,6 +78,7 @@ class LiquidFlowLocalAssembler : public LiquidFlowLocalAssemblerInterface
using
NodalVectorType
=
typename
LocalAssemblerTraits
::
LocalVector
;
using
NodalVectorType
=
typename
LocalAssemblerTraits
::
LocalVector
;
using
NodalRowVectorType
=
typename
ShapeMatricesType
::
NodalRowVectorType
;
using
NodalRowVectorType
=
typename
ShapeMatricesType
::
NodalRowVectorType
;
using
DimVectorType
=
typename
ShapeMatricesType
::
DimVectorType
;
using
DimVectorType
=
typename
ShapeMatricesType
::
DimVectorType
;
using
DimMatrixType
=
typename
ShapeMatricesType
::
DimMatrixType
;
using
GlobalDimNodalMatrixType
=
using
GlobalDimNodalMatrixType
=
typename
ShapeMatricesType
::
GlobalDimNodalMatrixType
;
typename
ShapeMatricesType
::
GlobalDimNodalMatrixType
;
...
@@ -159,16 +160,16 @@ private:
...
@@ -159,16 +160,16 @@ private:
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
Matrix
Xd
const
&
permeability
,
double
const
mu
,
Dim
Matrix
Type
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
Eigen
::
Vector
Xd
const
&
specific_body_force
,
double
const
rho_L
,
Dim
Vector
Type
const
&
specific_body_force
,
bool
const
has_gravity
);
bool
const
has_gravity
);
static
Eigen
::
VectorXd
calculateVelocity
(
static
Eigen
::
Matrix
<
double
,
ShapeFunction
::
DIM
,
1
>
calculateVelocity
(
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
Matrix
Xd
const
&
permeability
,
double
const
mu
,
Dim
Matrix
Type
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
Eigen
::
Vector
Xd
const
&
specific_body_force
,
double
const
rho_L
,
Dim
Vector
Type
const
&
specific_body_force
,
bool
const
has_gravity
);
bool
const
has_gravity
);
};
};
...
@@ -183,16 +184,16 @@ private:
...
@@ -183,16 +184,16 @@ private:
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
Eigen
::
Map
<
NodalVectorType
>&
local_b
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
Matrix
Xd
const
&
permeability
,
double
const
mu
,
Dim
Matrix
Type
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
Eigen
::
Vector
Xd
const
&
specific_body_force
,
double
const
rho_L
,
Dim
Vector
Type
const
&
specific_body_force
,
bool
const
has_gravity
);
bool
const
has_gravity
);
static
Eigen
::
VectorXd
calculateVelocity
(
static
Eigen
::
Matrix
<
double
,
ShapeFunction
::
DIM
,
1
>
calculateVelocity
(
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
Eigen
::
Map
<
const
NodalVectorType
>
const
&
local_p
,
IntegrationPointData
<
NodalRowVectorType
,
IntegrationPointData
<
NodalRowVectorType
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
GlobalDimNodalMatrixType
>
const
&
ip_data
,
Eigen
::
Matrix
Xd
const
&
permeability
,
double
const
mu
,
Dim
Matrix
Type
const
&
permeability
,
double
const
mu
,
double
const
rho_L
,
Eigen
::
Vector
Xd
const
&
specific_body_force
,
double
const
rho_L
,
Dim
Vector
Type
const
&
specific_body_force
,
bool
const
has_gravity
);
bool
const
has_gravity
);
};
};
...
@@ -205,7 +206,7 @@ private:
...
@@ -205,7 +206,7 @@ private:
template
<
typename
LaplacianGravityVelocityCalculator
,
template
<
typename
LaplacianGravityVelocityCalculator
,
typename
VelocityCacheType
>
typename
VelocityCacheType
>
void
computeDarcyVelocity
Specific
(
void
compute
Projected
DarcyVelocity
(
const
double
t
,
const
double
dt
,
std
::
vector
<
double
>
const
&
local_x
,
const
double
t
,
const
double
dt
,
std
::
vector
<
double
>
const
&
local_x
,
ParameterLib
::
SpatialPosition
const
&
pos
,
ParameterLib
::
SpatialPosition
const
&
pos
,
VelocityCacheType
&
darcy_velocity_at_ips
)
const
;
VelocityCacheType
&
darcy_velocity_at_ips
)
const
;
...
...
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