File power.hxx#

class PowerSolver : public Solver#

Public Functions

explicit PowerSolver(Options *opts = nullptr)#
~PowerSolver() = default#
virtual int init() override#

Initialise the solver.

virtual int run() override#

Run the solver, calling monitors nout times, at intervals of tstep. This function is called by solve(), and is specific to each solver type

This should probably be protected, since it shouldn’t be called by users.

virtual void outputVars(Options &output_options, bool save_repeat = true) override#

Add evolving variables to output (dump) file or restart file

Parameters:
  • outputfile[inout] The Options to add variable to

  • save_repeat[in] If true, add variables with time dimension

Private Functions

BoutReal norm(Array<BoutReal> &state)#
void divide(Array<BoutReal> &in, BoutReal value)#

Private Members

BoutReal curtime#
BoutReal eigenvalue#
int nlocal#
int nglobal#
Array<BoutReal> f0#