ControlSubsamplingVertexVTKWriter class for writing VTK files with subsampling based on control messages. More...
#include <ikarus/utils/observer/controlvtkwriter.hh>
Public Types | |
using | MessageType = ControlMessages |
Public Member Functions | |
ControlSubsamplingVertexVTKWriter (const Basis &basis, const Eigen::VectorXd &sol, int refinementLevels=0) | |
Constructor for ControlSubsamplingVertexVTKWriter. More... | |
auto | setFieldInfo (std::string &&name, Dune::VTK::FieldInfo::Type type, std::size_t size, Dune::VTK::Precision prec=Dune::VTK::Precision::float32) |
Set field information for the VTK file. More... | |
auto | setFileNamePrefix (std::string &&name) |
Set the file name prefix for VTK files. More... | |
void | updateImpl (ControlMessages message) final |
Implementation of the update method. More... | |
void | update (MessageType message) |
Update method for receiving notifications with a message. More... | |
void | update (MessageType message, double val) |
Update method for receiving notifications with a message and a double value. More... | |
void | update (MessageType message, int val) |
Update method for receiving notifications with a message and an integer value. More... | |
void | update (MessageType message, const std::string &val) |
Update method for receiving notifications with a message and a string value. More... | |
void | update (MessageType message, int val1, double val2) |
Update method for receiving notifications with a message and two values (integer and double). More... | |
void | update (MessageType message, int val1, const std::string &val2) |
Update method for receiving notifications with a message, an integer value, and a string value. More... | |
void | update (MessageType message, const Eigen::VectorXd &vec) |
Update method for receiving notifications with a message and an Eigen::VectorXd. More... | |
Protected Member Functions | |
virtual void | updateImpl (MessageType message, double val) |
virtual void | updateImpl (MessageType message, int val) |
virtual void | updateImpl (MessageType message, const std::string &val) |
virtual void | updateImpl (MessageType message, int val1, const std::string &val2) |
virtual void | updateImpl (MessageType message, int val1, double val2) |
virtual void | updateImpl (MessageType message, const Eigen::VectorXd &vec) |
It inherits from the IObserver class and is specifically designed for handling SOLUTION_CHANGED messages.
B | The type of the grid basis. |
|
inherited |
|
inline |
Initializes the VTK writer with the provided basis, solution, and refinement levels.
basis | The grid basis. |
sol | The solution vector. |
refinementLevels | The refinement levels for subsampling. |
|
inline |
name | The name of the field. |
type | The type of the field. |
size | The size of the field. |
prec | The precision of the field. |
|
inline |
p_name | The file name prefix. |
|
inlineinherited |
message | The message to be received. |
|
inlineinherited |
message | The message to be received. |
vec | The Eigen::VectorXd associated with the message. |
|
inlineinherited |
message | The message to be received. |
val | The string value associated with the message. |
|
inlineinherited |
message | The message to be received. |
val | The double value associated with the message. |
|
inlineinherited |
message | The message to be received. |
val | The integer value associated with the message. |
|
inlineinherited |
message | The message to be received. |
val1 | The integer value associated with the message. |
val2 | The string value associated with the message. |
|
inlineinherited |
message | The message to be received. |
val1 | The integer value associated with the message. |
val2 | The double value associated with the message. |
|
inlinefinalvirtual |
This method is called upon receiving a SOLUTION_CHANGED control message. It writes VTK files with subsampling based on the provided field information.
message | The received control message. |
Reimplemented from Ikarus::IObserver< ControlMessages >.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
Reimplemented in Ikarus::ControlLogger.
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
|
inlineprotectedvirtualinherited |
Reimplemented in Ikarus::ControlLogger.
|
inlineprotectedvirtualinherited |
Reimplemented in Ikarus::ControlLogger.