From 7dfcc480ba1e19bd3232349fc733caef94034292 Mon Sep 17 00:00:00 2001 From: stainer_t Date: Mon, 8 Sep 2025 13:48:49 +0200 Subject: Initial commit from Polytechnique Montreal --- Yacs++/src/POW.hxx | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 Yacs++/src/POW.hxx (limited to 'Yacs++/src/POW.hxx') diff --git a/Yacs++/src/POW.hxx b/Yacs++/src/POW.hxx new file mode 100755 index 0000000..38aaeaf --- /dev/null +++ b/Yacs++/src/POW.hxx @@ -0,0 +1,35 @@ +/** + * This class is a C++ wrapper for a while loop calling a + * Cle-2000 procedure named PowComponent.c2m at each iteration. + *

+ * + * @author Alain Hebert, Ecole Polytechnique de Montreal (2013) + */ +#ifndef __POW_HXX__ +#define __POW_HXX__ + +#include "Cle2000.hxx" +#include "Communication.hxx" + +class POW { +public: + /** use this constructor to create a new POW object + */ + POW(); + + /** use this method to assign a Calcium component to the POW object + * @param power thermal reactor power in MW + * @param component Calcium component reference + */ + void initialize(double power, void* component); + + /** use this method to execute the POW object + */ + void run(); + +private: + double power_; + Communication communicator_; +}; // class POW + +#endif -- cgit v1.2.3