Contains informations about cuts and user specified global equations.
More...
#include <SequentialAssembly.h>
|
| SequentialAssembly (void) |
| Lifecycle. More...
|
|
| ~SequentialAssembly (void) |
|
double | deltaseq (void) const |
|
int | neqs (void) const |
| returns the number of Assignments More...
|
|
void | wegsteinstep (void) |
| Substitutes RHS into *LHSP for all Assignments. More...
|
|
void | directstep (void) |
| Updates *LHSP with RHS using Wegstein accelerated direct substitution for all Assignments. More...
|
|
void | makeAssignment (std::list< Assignment * >::iterator &p, Value &lhs, Value rhs, std::string tag, std::string rhsstring, int i, Libpf::Utility::ScalingMode sm=Libpf::Utility::ScalingMode::noscaling, double xmin=0.0, double xmax=1.0, Value factor=One) |
|
void | addCut (std::string name, Stream *in, Stream *out) |
|
void | removeCut (std::string tag) |
|
Assignment * | operator<< (Assignment *ep) |
| includes a new Assignment to the corresponding collection More...
|
|
void | print (void) const |
|
void | purgeAss (void) |
| delete all equations More...
|
|
void | setDamping (double d) |
| set damping coefficient for direct substitution More...
|
|
double | damping (void) const |
| returns current value of the damping coefficient for direct substitution More...
|
|
void | setMaxChange (double c) |
| set maximum relative step change for direct substitution More...
|
|
double | maxChange (void) const |
| returns current value of maximum relative step change for direct substitution More...
|
|
| Diagnostic (void) |
|
void | setVerbosity (int verbosity) |
| sets the verbosity level for this instance More...
|
|
int | verbosity (void) const |
|
|
std::map< std::string, Cut * > | cuts_ |
| collection of cut streams to automatically generate the Assignments converging them More...
|
|
std::list< Assignment * > | ass_ |
| collection of Assignments, containing the assembly of explicit equations More...
|
|
std::vector< Scaler * > | scalers_ |
| collection of optional scalers for the unknowns More...
|
|
Contains informations about cuts and user specified global equations.
#include <libpf/flowsheet/SequentialAssembly.h>
- Warning
-
Thread safe:
-
Extendable:
-
Platform dependencies:
◆ SequentialAssembly()
SequentialAssembly::SequentialAssembly |
( |
void |
| ) |
|
◆ ~SequentialAssembly()
SequentialAssembly::~SequentialAssembly |
( |
void |
| ) |
|
◆ addCut()
void SequentialAssembly::addCut |
( |
std::string |
name, |
|
|
Stream * |
in, |
|
|
Stream * |
out |
|
) |
| |
includes a new cut to the collection
- Parameters
-
name | the tag of the out-stream (without the bis suffix) |
in | If the stream XXX->YYY is cut, a pointer to tag of the source->YYY end (typically SSSbis) |
out | If the stream XXX->YYY is cut, a pointer to the XXX->sink end (i.e. SSS) |
◆ damping()
double SequentialAssembly::damping |
( |
void |
| ) |
const |
returns current value of the damping coefficient for direct substitution
◆ deltaseq()
double SequentialAssembly::deltaseq |
( |
void |
| ) |
const |
◆ directstep()
void SequentialAssembly::directstep |
( |
void |
| ) |
|
Updates *LHSP with RHS using Wegstein accelerated direct substitution for all Assignments.
◆ isAssignmentActive()
virtual bool SequentialAssembly::isAssignmentActive |
( |
std::list< Assignment * >::iterator & |
q | ) |
const |
|
protectedpure virtual |
will be implemented in Model-aware derived class
Implemented in FlowSheet.
◆ makeAssignment()
add or evaluate one new Assignment to the collection and increment id; sets scaling
- Parameters
-
p | pointer to the current position in the Assignment container; indicates whether we are adding (p == ass_.end()) or evaluating |
lhs | the left hand side, a Value lvalue where the result of the right hand side should be written |
rhs | the right hand side |
tag | the descriptive tag |
rhsstring | the right hand side as a string |
i | a hack to handle Assignments inside loops ... |
sm | ScalingMode |
xmin | minimum unscaled value |
xmax | maximum unscaled value |
factor | residual will be multiplied by this factor when solving simultaneously |
- See also
- Assignment::Assignment
◆ maxChange()
double SequentialAssembly::maxChange |
( |
void |
| ) |
const |
returns current value of maximum relative step change for direct substitution
◆ neqs()
int SequentialAssembly::neqs |
( |
void |
| ) |
const |
returns the number of Assignments
◆ operator<<()
includes a new Assignment to the corresponding collection
◆ print()
void SequentialAssembly::print |
( |
void |
| ) |
const |
◆ purgeAss()
void SequentialAssembly::purgeAss |
( |
void |
| ) |
|
◆ removeCut()
void SequentialAssembly::removeCut |
( |
std::string |
tag | ) |
|
removes a cut from the collection
- Parameters
-
tag | the tag of the out-stream (without the bis suffix) |
◆ setDamping()
void SequentialAssembly::setDamping |
( |
double |
d | ) |
|
set damping coefficient for direct substitution
◆ setMaxChange()
void SequentialAssembly::setMaxChange |
( |
double |
c | ) |
|
set maximum relative step change for direct substitution
◆ wegsteinstep()
void SequentialAssembly::wegsteinstep |
( |
void |
| ) |
|
Substitutes RHS into *LHSP for all Assignments.
◆ ass_
collection of Assignments, containing the assembly of explicit equations
◆ cuts_
std::map<std::string, Cut *> SequentialAssembly::cuts_ |
collection of cut streams to automatically generate the Assignments converging them
◆ scalers_
std::vector<Scaler *> SequentialAssembly::scalers_ |
collection of optional scalers for the unknowns
The documentation for this class was generated from the following file: