// @HEADER // ***************************************************************************** // Rapid Optimization Library (ROL) Package // // Copyright 2014 NTESS and the ROL contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef ROL_PDEOPT_ELASTICITY_SIMP_DATA_H #define ROL_PDEOPT_ELASTICITY_SIMP_DATA_H #include "Intrepid_HGRAD_QUAD_C2_FEM.hpp" #include "Intrepid_HGRAD_QUAD_C1_FEM.hpp" #include "../TOOLS/elasticitySIMP.hpp" template class ElasticitySIMPData : public ElasticitySIMP { private: using GO = typename Tpetra::Map<>::global_ordinal_type; public: ElasticitySIMPData(const ROL::Ptr > &comm, const Teuchos::RCP &parlist, const ROL::Ptr &outStream) { this->ElasticitySIMP_Initialize(comm, parlist, outStream); Real iniDens = parlist->sublist("ElasticitySIMP").get("Initial Density", 1.0); this->initDensity_ = iniDens; std::cout<<"initial density: "<SetSIMPParallelStructure(); this->SetUpLocalIntrepidArrays(); this->ComputeLocalSystemMats(true); this->AssembleSystemGraph(); this->AssembleSystemMats(); //Setup DBC information, do not specify any bc sides, use coordinates to determine the BC instead std::vector dbc_side {}; this->SetUpMyDBCInfo(true, dbc_side); //Setup all loads this->process_loading_information(parlist); this->ComputeLocalForceVec(); this->AssembleRHSVector(); // this->EnforceDBC(); this->ConstructSolvers(); //test_mats(); } }; // class ElasticitySIMPData #endif