16#ifndef ProblemTrio_included
17#define ProblemTrio_included
19#include <ICoCoProblem.h>
55 void setDataFile(
const std::string& datafile)
override;
83 ValueType
getFieldType(
const std::string& name)
const override;
87 void setInputField(
const std::string& name,
const TrioField& afield)
override;
88 void getOutputField(
const std::string& name, TrioField& afield)
const override;
89 void updateOutputField(
const std::string& name, TrioField& afield)
const override;
116 const std::vector<double>& x,
117 const std::vector<double>& y,
118 const std::vector<double>& z,
119 std::vector<double>& vals,
int compo = 0);
121 double getOutputPointValues(
const std::string& name,
const double x,
const double y,
const double z,
int compo = 0);
144Objet_U& get_obj(
const char *) ;
void setMPIComm(void *) override
void updateOutputMEDDoubleField(const std::string &name, MEDDoubleField &afield) const override
void terminate() override
This method is called once at the end, after any other one.
void getOutputPointValues(const std::string &name, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, std::vector< double > &vals, int compo=0)
bool iterateTimeStep(bool &converged) override
In the case solveTimeStep uses an iterative process, this method executes a single iteration.
double getOutputDoubleValue(const std::string &name) const override
bool getStationaryMode() const override
double computeTimeStep(bool &stop) const override
Compute the value the Problem would like for the next time step.
ValueType getFieldType(const std::string &name) const override
bool supports_multiple_runs_
int getMEDCouplingMajorVersion() const override
std::vector< std::string > getInputFieldsNames() const override
This method is used to find the names of input fields understood by the Problem.
void getInputMEDDoubleFieldTemplate(const std::string &name, MEDDoubleField &afield) const override
void validateTimeStep() override
Validates the calculated unknown by moving the present time at the end of the time step.
double presentTime() const override
Returns the present time.
void setInputDoubleValue(const std::string &name, const double &val) override
void getInputFieldTemplate(const std::string &name, TrioField &afield) const override
This method is used to get a template of a field expected for the given name.
bool initialize() override
This method is called once at the beginning, before any other one of the interface Problem.
std::string getOutputStringValue(const std::string &name) const override
void resetTime(double time) override
Reset the current time of the Problem to a given value.
bool isMEDCoupling64Bits() const override
void setInputField(const std::string &name, const TrioField &afield) override
This method is used to provide the Problem with an input field.
bool initialize_pb(Probleme_U &pb)
void getOutputField(const std::string &name, TrioField &afield) const override
void getOutputMEDDoubleField(const std::string &name, MEDDoubleField &afield) const override
std::vector< std::string > getOutputFieldsNames() const override
void setInputMEDDoubleField(const std::string &name, const MEDDoubleField &afield) override
bool initTimeStep(double dt) override
This method allocates and initializes the unknown and given fields for the future time step.
void setDataFile(const std::string &datafile) override
void updateOutputField(const std::string &name, TrioField &afield) const override
void setStationaryMode(bool stationary) override
void setInputStringValue(const std::string &name, const std::string &val) override
bool solveTimeStep() override
Calculates the unknown fields for the next time step.
MEDDoubleField getDirectAccessToUnknown(const std::string &unk_name, bool isFuture)
int getOutputIntValue(const std::string &name) const override
bool isStationary() const override
Tells if the Problem unknowns have changed during the last time step.
void abortTimeStep() override
Aborts the resolution of the current time step.
void setInputIntValue(const std::string &name, const int &val) override
void deactivate_multiple_runs()
classe Objet_U Cette classe est la classe de base des Objets de TRUST
Classe creee et executee par main() et lors d'une execution TRUST a travers Python.