Abstract mixin with the interface that has to be implemented by a Model capable of being solved both in simultaneous and in sequential mode. More...

#include <Calculatable.h>

Inheritance diagram for Calculatable:

Public Types

enum  SolutionMode { Null = 0 , sequential , simultaneous , singlePassSimultaneous }
 

Public Member Functions

virtual void go (SolutionMode solutionMode, int level)=0
 

Protected Member Functions

virtual ~Calculatable ()=default
 

Detailed Description

Abstract mixin with the interface that has to be implemented by a Model capable of being solved both in simultaneous and in sequential mode.

Member Enumeration Documentation

◆ SolutionMode

Enumerator
Null 

Undefined.

sequential 

Sequential.

simultaneous 

Simultaneous i.e. equation based.

singlePassSimultaneous 

Single pass in simultaneous mode.

Constructor & Destructor Documentation

◆ ~Calculatable()

virtual Calculatable::~Calculatable ( )
protectedvirtualdefault

Member Function Documentation

◆ go()

virtual void Calculatable::go ( SolutionMode  solutionMode,
int  level 
)
pure virtual

Calculate the Model

Parameters
solutionModesolution mode to use
levelused for indenting

Implemented in Terminator, Stream, Compressor, Degasser, Divider, Exchanger, FlashDegasser, FlashDrum, FlashSplitter, HeatTransfer, HtuNtu, Mixer, MultiExchanger, Multiplier, Pipe, Pump, Selector, Separator, Splitter, and FlowSheet.


The documentation for this class was generated from the following file: