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

[PCS] Set velocity calculation outside of the linearization

parent b913280d
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,15 @@ void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
fac * rho_g * sm.dNdx.transpose() * perm.col(gravitational_axis_id);
}
}
template <typename ShapeFunction, typename IntegrationMethod,
unsigned GlobalDim>
void LiquidFlowLocalAssembler<ShapeFunction, IntegrationMethod, GlobalDim>::
computeSecondaryVariable(std::vector<double> const& local_x)
{
(void) local_x;
}
} // end of namespace
} // end of namespace
......
......@@ -85,6 +85,8 @@ public:
std::vector<double>& local_K_data,
std::vector<double>& local_b_data) override;
void computeSecondaryVariable(std::vector<double> const& local_x) override;
Eigen::Map<const Eigen::RowVectorXd> getShapeMatrix(
const unsigned integration_point) const override
{
......
......@@ -26,6 +26,13 @@ void LocalAssemblerInterface::assembleWithJacobian(
"assembler.");
}
void LocalAssemblerInterface::computeSecondaryVariable(std::vector<double> const& /*local_x*/)
{
OGS_FATAL(
"computeSecondaryVariable(...) function is not implemented in the local "
"assembler.");
}
void LocalAssemblerInterface::preTimestep(
std::size_t const mesh_item_id,
NumLib::LocalToGlobalIndexMap const& dof_table, GlobalVector const& x,
......
......@@ -45,6 +45,8 @@ public:
std::vector<double>& local_b_data,
std::vector<double>& local_Jac_data);
virtual void computeSecondaryVariable(std::vector<double> const& local_x);
virtual void preTimestep(std::size_t const mesh_item_id,
NumLib::LocalToGlobalIndexMap const& dof_table,
GlobalVector const& x, double const t,
......
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