103 ResFuncType time_deriv,
104 ResFuncType constraint,
105 ReinitFuncType reinit_func,
106 bool compute_second_order_eqns)
113 if (request_jacobian)
118 for (
unsigned int i=0; i != n_dofs; ++i)
119 old_elem_solution(i) =
136 theta_solution *=
theta;
137 theta_solution.
add(1. -
theta, old_elem_solution);
150 (context.*reinit_func)(
theta);
153 bool jacobian_computed =
171 (context.*reinit_func)(1);
178 jacobian_computed = (
_system.
get_physics()->*constraint)(jacobian_computed, context) &&
182 if (request_jacobian)
184 if (jacobian_computed)
190 return jacobian_computed;
virtual unsigned int size() const override
virtual bool side_constraint(bool request_jacobian, DiffContext &)
virtual bool nonlocal_residual(bool request_jacobian, DiffContext &) override
const DenseMatrix< Number > & get_elem_jacobian() const
bool compute_second_order_eqns(bool compute_jacobian, DiffContext &c)
Real fixed_solution_derivative
void swap(DenseMatrix< T > &other_matrix)
boostcopy::enable_if_c< ScalarTraits< T2 >::value, void >::type add(const T2 factor, const DenseVector< T3 > &vec)
void prepare_accel(DiffContext &context)
const DenseVector< Number > & get_elem_fixed_solution() const
const DenseVector< Number > & get_elem_solution_rate() const
virtual bool side_damping_residual(bool request_jacobian, DiffContext &)
virtual bool element_residual(bool request_jacobian, DiffContext &) override
Number old_nonlinear_solution(const dof_id_type global_dof_number) const
virtual bool nonlocal_time_derivative(bool request_jacobian, DiffContext &)
virtual bool damping_residual(bool request_jacobian, DiffContext &)
virtual bool _general_residual(bool request_jacobian, DiffContext &, ResFuncType mass, ResFuncType damping, ResFuncType time_deriv, ResFuncType constraint, ReinitFuncType reinit, bool compute_second_order_eqns)
virtual bool nonlocal_constraint(bool request_jacobian, DiffContext &)
virtual void elem_reinit(Real)
bool _eulerian_time_deriv(bool request_jacobian, DiffContext &)
void swap(DenseVector< T > &other_vector)
virtual bool mass_residual(bool request_jacobian, DiffContext &)
bool have_second_order_vars() const
Real elem_solution_rate_derivative
const DenseVector< Number > & get_elem_solution() const
virtual Real error_order() const override
Real elem_solution_derivative
const std::vector< dof_id_type > & get_dof_indices() const
bool have_second_order_scalar_vars() const
const DifferentiablePhysics * get_physics() const
virtual bool side_residual(bool request_jacobian, DiffContext &) override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void elem_side_reinit(Real)
virtual bool nonlocal_damping_residual(bool request_jacobian, DiffContext &)
virtual bool nonlocal_mass_residual(bool request_jacobian, DiffContext &c)
virtual bool side_mass_residual(bool request_jacobian, DiffContext &)
virtual bool side_time_derivative(bool request_jacobian, DiffContext &)
virtual bool element_constraint(bool request_jacobian, DiffContext &)
virtual void nonlocal_reinit(Real)