Skip to content
Snippets Groups Projects
Commit dec3b0fc authored by wenqing's avatar wenqing
Browse files

[PCS] Minor changes in name and others according to the comments by Nori and Dima

parent 21aaac55
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ void HeatConductionProcess::assembleWithJacobianConcreteProcess( ...@@ -99,7 +99,7 @@ void HeatConductionProcess::assembleWithJacobianConcreteProcess(
void HeatConductionProcess::computeSecondaryVariableConcrete(const double t, void HeatConductionProcess::computeSecondaryVariableConcrete(const double t,
GlobalVector const& x) GlobalVector const& x)
{ {
DBUG("Compute the velocity for LiquidFlowProcess."); DBUG("Compute heat flux for HeatConductionProcess.");
GlobalExecutor::executeMemberOnDereferenced( GlobalExecutor::executeMemberOnDereferenced(
&HeatConductionLocalAssemblerInterface::computeSecondaryVariable, &HeatConductionLocalAssemblerInterface::computeSecondaryVariable,
_local_assemblers, *_local_to_global_index_map, t, x); _local_assemblers, *_local_to_global_index_map, t, x);
......
...@@ -49,7 +49,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>:: ...@@ -49,7 +49,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
template <typename ShapeFunction, typename IntegrationMethod, template <typename ShapeFunction, typename IntegrationMethod,
unsigned GlobalDim> unsigned GlobalDim>
template <typename Calculator> template <typename LaplacianGravityVelocityCalculator>
void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>:: void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
local_assemble(double const t, std::vector<double> const& local_x, local_assemble(double const t, std::vector<double> const& local_x,
std::vector<double>& local_M_data, std::vector<double>& local_M_data,
...@@ -100,7 +100,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>:: ...@@ -100,7 +100,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
const double mu = _material_properties.getViscosity(p, _temperature); const double mu = _material_properties.getViscosity(p, _temperature);
// Assemble Laplacian, K, and RHS by the gravitational term // Assemble Laplacian, K, and RHS by the gravitational term
Calculator::calculateLaplacianAndGravityTerm( LaplacianGravityVelocityCalculator::calculateLaplacianAndGravityTerm(
local_K, local_b, sm, perm, integration_factor, mu, rho_g, local_K, local_b, sm, perm, integration_factor, mu, rho_g,
_gravitational_axis_id); _gravitational_axis_id);
} }
...@@ -132,7 +132,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>:: ...@@ -132,7 +132,7 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
template <typename ShapeFunction, typename IntegrationMethod, template <typename ShapeFunction, typename IntegrationMethod,
unsigned GlobalDim> unsigned GlobalDim>
template <typename Calculator> template <typename LaplacianGravityVelocityCalculator>
void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>:: void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
computeSecondaryVariableLocal(double const /*t*/, computeSecondaryVariableLocal(double const /*t*/,
std::vector<double> const& local_x, std::vector<double> const& local_x,
...@@ -161,7 +161,8 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>:: ...@@ -161,7 +161,8 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
// Compute viscosity: // Compute viscosity:
const double mu = _material_properties.getViscosity(p, _temperature); const double mu = _material_properties.getViscosity(p, _temperature);
Calculator::calculateVelocity(_darcy_velocities, local_p_vec, sm, perm, LaplacianGravityVelocityCalculator
::calculateVelocity(_darcy_velocities, local_p_vec, sm, perm,
ip, mu, rho_g, _gravitational_axis_id); ip, mu, rho_g, _gravitational_axis_id);
} }
} }
......
...@@ -171,7 +171,7 @@ private: ...@@ -171,7 +171,7 @@ private:
int const gravitational_axis_id); int const gravitational_axis_id);
}; };
template <typename Calculator> template <typename LaplacianGravityVelocityCalculator>
void local_assemble(double const t, std::vector<double> const& local_x, void local_assemble(double const t, std::vector<double> const& local_x,
std::vector<double>& local_M_data, std::vector<double>& local_M_data,
std::vector<double>& local_K_data, std::vector<double>& local_K_data,
...@@ -179,7 +179,7 @@ private: ...@@ -179,7 +179,7 @@ private:
SpatialPosition const& pos, SpatialPosition const& pos,
Eigen::MatrixXd const& perm); Eigen::MatrixXd const& perm);
template <typename Calculator> template <typename LaplacianGravityVelocityCalculator>
void computeSecondaryVariableLocal(double const /*t*/, void computeSecondaryVariableLocal(double const /*t*/,
std::vector<double> const& local_x, std::vector<double> const& local_x,
SpatialPosition const& pos, SpatialPosition const& pos,
......
...@@ -152,7 +152,7 @@ private: ...@@ -152,7 +152,7 @@ private:
GlobalVector const& /*x*/){} GlobalVector const& /*x*/){}
virtual void computeSecondaryVariableConcrete(const double /*t*/, virtual void computeSecondaryVariableConcrete(const double /*t*/,
GlobalVector const& /*x*/) {}; GlobalVector const& /*x*/) {}
virtual NumLib::IterationResult postIterationConcreteProcess( virtual NumLib::IterationResult postIterationConcreteProcess(
GlobalVector const& /*x*/) GlobalVector const& /*x*/)
......
Subproject commit 7a19025a1658a79ca444cee5d12c08a25c1ed6fc Subproject commit 8254884e43b6ac088e70ce74e23b7c0b72e886e6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment