Commit a6c96fbd authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#820 Inlet pressure: add todo about time dependancy.

parent bfe6f3f1
......@@ -1050,7 +1050,7 @@ TransientSource1 = {
-- Value of the transient source in the case nature is 'constant'(and also initial value if nature is
-- 'at_quadrature_point'; irrelevant otherwise).
-- Expected format: {VALUE1, VALUE2, ...}
scalar_value = { 0. , 1.e4, 0.},
scalar_value = { 0. , 4.e-3, 0.},
-- Value of the transient source in the case nature is 'lua_function'(and also initial value if nature is
-- 'at_quadrature_point'; irrelevant otherwise).
......
......@@ -344,7 +344,11 @@ namespace HappyHeart
//! Velocity of the fluid in the previous time iteration.
GlobalVector::unique_ptr fluid_velocity_previous_time_iteration_ = nullptr;
//! Inlet pressure parameter.
/*!
* \brief Inlet pressure parameter.
*
* \todo #873 #820 At the moment time dependancy is unceremoniously ignored!
*/
Parameter<ParameterNS::Type::vector>::unique_ptr inlet_pressure_ = nullptr;
};
......
......@@ -207,7 +207,8 @@ namespace HappyHeart
template<class SolidVariationalFormulationPolicyT>
inline const GlobalVector& Model<SolidVariationalFormulationPolicyT>::GetFluidVelocityPreviousTimeIteration() const noexcept
inline const GlobalVector& Model<SolidVariationalFormulationPolicyT>
::GetFluidVelocityPreviousTimeIteration() const noexcept
{
assert(!(!fluid_velocity_previous_time_iteration_));
return *fluid_velocity_previous_time_iteration_;
......@@ -215,14 +216,16 @@ namespace HappyHeart
template<class SolidVariationalFormulationPolicyT>
inline GlobalVector& Model<SolidVariationalFormulationPolicyT>::GetNonCstFluidVelocityPreviousTimeIteration() noexcept
inline GlobalVector& Model<SolidVariationalFormulationPolicyT>
::GetNonCstFluidVelocityPreviousTimeIteration() noexcept
{
return const_cast<GlobalVector&>(GetFluidVelocityPreviousTimeIteration());
}
template<class SolidVariationalFormulationPolicyT>
inline const Parameter<ParameterNS::Type::vector>& Model<SolidVariationalFormulationPolicyT>::GetInletPressure() const noexcept
inline const Parameter<ParameterNS::Type::vector>& Model<SolidVariationalFormulationPolicyT>
::GetInletPressure() const noexcept
{
assert(!(!inlet_pressure_));
return *inlet_pressure_;
......@@ -230,7 +233,8 @@ namespace HappyHeart
template<class SolidVariationalFormulationPolicyT>
inline Parameter<ParameterNS::Type::vector>& Model<SolidVariationalFormulationPolicyT>::GetNonCstInletPressure() noexcept
inline Parameter<ParameterNS::Type::vector>& Model<SolidVariationalFormulationPolicyT>
::GetNonCstInletPressure() noexcept
{
return const_cast<Parameter<ParameterNS::Type::vector>&>(GetInletPressure());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment