MultiStageScheme

class dolfin.cpp.fem.MultiStageScheme(*args)

Bases: dolfin.cpp.common.Variable

Place-holder for forms and solutions for a multi-stage Butcher tableau based method.

Constructor.

Parameters:
  • std::vector< std::shared_ptr< const Form >>> stage_forms (std::vector<) –
  • const Form > last_stage (std::shared_ptr<) –
  • std::shared_ptr< Function > > stage_solutions (std::vector<) –
  • Function > u (std::shared_ptr<) –
  • Constant > t (std::shared_ptr<) –
  • Constant > dt (std::shared_ptr<) –
  • double > dt_stage_offset (std::vector<) –
  • int > jacobian_indices (std::vector<) –
  • int order (unsigned) –
  • std::string name (const) –
  • std::string human_form (const) –
  • std::shared_ptr< const DirichletBC >> bcs (std::vector<) –
bcs()

Return boundary conditions.

Return type:std::vector< std::shared_ptr< const DirichletBC > >
dt_stage_offset()

Return local timestep.

Return type:const std::vector< double > &
implicit()

Return true if stage is implicit.

Parameters:int stage (unsigned) –
Return type:bool
jacobian_index()

Return a distinct jacobian index for a given stage if negative the stage is explicit and hence no jacobian needed.

Parameters:int stage (unsigned) –
Return type:int
order()

Return the order of the scheme.

Return type:unsigned int
thisown

The membership flag