Go to the documentation of this file.
20 #ifndef RB_DATA_DESERIALIZATION_H
21 #define RB_DATA_DESERIALIZATION_H
24 #include "libmesh/libmesh_config.h"
25 #if defined(LIBMESH_HAVE_CAPNPROTO)
28 #include "libmesh/rb_data.capnp.h"
31 #include "capnp/message.h"
41 class TransientRBEvaluation;
42 class RBEIMEvaluation;
43 class RBSCMEvaluation;
49 namespace RBDataDeserialization
78 void read_from_file(
const std::string & path,
bool read_error_bound_data);
111 void read_from_file(
const std::string & path,
bool read_error_bound_data);
157 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK)
191 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK
198 RBData::ParameterRanges::Reader & parameter_ranges,
199 RBData::DiscreteParameterList::Reader & discrete_parameters_list);
204 template <
typename RBEvaluationReaderNumber>
206 RBEvaluationReaderNumber & rb_evaluation_reader,
207 bool read_error_bound_data);
213 template <
typename RBEvaluationReaderNumber,
typename TransRBEvaluationReaderNumber>
215 RBEvaluationReaderNumber & rb_evaluation_reader,
216 TransRBEvaluationReaderNumber & trans_rb_eval_reader,
217 bool read_error_bound_data);
223 template <
typename RBEvaluationReaderNumber,
typename RBEIMEvaluationReaderNumber>
225 RBEvaluationReaderNumber & rb_evaluation_reader,
226 RBEIMEvaluationReaderNumber & rb_eim_eval_reader);
228 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK)
237 RBData::RBSCMEvaluation::Reader & rb_scm_eval_reader);
238 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK
256 #endif // #if defined(LIBMESH_HAVE_CAPNPROTO)
258 #endif // RB_COMPONENT_DATA_DESERIALIZATION_H
void load_rb_eim_evaluation_data(RBEIMEvaluation &rb_eim_eval, RBEvaluationReaderNumber &rb_evaluation_reader, RBEIMEvaluationReaderNumber &rb_eim_eval_reader)
Load an EIM RB evaluation from a corresponding reader structure in the buffer.
TransientRBEvaluation & _trans_rb_eval
The TransientRBEvaluation object that we will read into.
virtual ~RBEvaluationDeserialization()
Destructor.
virtual ~RBSCMEvaluationDeserialization()
Destructor.
RBEIMEvaluation & _rb_eim_eval
The RBEIMEvaluation object we will read into.
TransientRBEvaluationDeserialization(TransientRBEvaluation &trans_rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data....
void load_transient_rb_evaluation_data(TransientRBEvaluation &trans_rb_eval, RBEvaluationReaderNumber &rb_evaluation_reader, TransRBEvaluationReaderNumber &trans_rb_eval_reader, bool read_error_bound_data)
Load an RB evaluation from a corresponding reader structure in the buffer.
virtual ~TransientRBEvaluationDeserialization()
Destructor.
RBEvaluationDeserialization(RBEvaluation &rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data....
RBSCMEvaluation & _rb_scm_eval
The RBSCMEvaluation object we will read into.
RBEvaluation & _rb_eval
The RBEvaluation object that we will read into.
The libMesh namespace provides an interface to certain functionality in the library.
The ReplicatedMesh class is derived from the MeshBase class, and is used to store identical copies of...
RBSCMEvaluationDeserialization(RBSCMEvaluation &trans_rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data....
This class de-serializes a TransientRBEvaluation object using the Cap'n Proto library.
A Point defines a location in LIBMESH_DIM dimensional Real space.
RBEIMEvaluationDeserialization(RBEIMEvaluation &trans_rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data....
This class is part of the rbOOmit framework.
This class is part of the rbOOmit framework.
void load_rb_scm_evaluation_data(RBSCMEvaluation &rb_scm_eval, RBData::RBSCMEvaluation::Reader &rb_scm_eval_reader)
Load an SCM RB evaluation from a corresponding reader structure in the buffer.
This class de-serializes a RBSCMEvaluation object using the Cap'n Proto library.
void read_from_file(const std::string &path)
Write the Cap'n'Proto buffer to disk.
void load_point(RBData::Point3D::Reader point_reader, Point &point)
Helper function that loads point data.
void load_elem_into_mesh(RBData::MeshElem::Reader mesh_elem_reader, libMesh::Elem *elem, libMesh::ReplicatedMesh &mesh)
Helper function that loads element data.
void read_from_file(const std::string &path)
Write the Cap'n'Proto buffer to disk.
This class is part of the rbOOmit framework.
void read_from_file(const std::string &path, bool read_error_bound_data)
Write the Cap'n'Proto buffer to disk.
This class de-serializes an RBEvaluation object using the Cap'n Proto library.
This is the base class from which all geometric element types are derived.
This class is part of the rbOOmit framework.
This class is part of the rbOOmit framework.
void read_from_file(const std::string &path, bool read_error_bound_data)
Write the Cap'n'Proto buffer to disk.
virtual ~RBEIMEvaluationDeserialization()
Destructor.
void load_parameter_ranges(RBParametrized &rb_evaluation, RBData::ParameterRanges::Reader ¶meter_ranges, RBData::DiscreteParameterList::Reader &discrete_parameters_list)
Load parameter ranges and discrete parameter values into an RBEvaluation from the corresponding struc...
This class de-serializes a RBEIMEvaluation object using the Cap'n Proto library.
void load_rb_evaluation_data(RBEvaluation &rb_evaluation, RBEvaluationReaderNumber &rb_evaluation_reader, bool read_error_bound_data)
Load an RB evaluation from a corresponding reader structure in the buffer.