Page MenuHomec4science

domain_akantu_dynamic.hh
No OneTemporary

File Metadata

Created
Wed, Jul 10, 03:41

domain_akantu_dynamic.hh

/**
* @file domain_akantu_dynamic.hh
*
* @author Till Junge <till.junge@epfl.ch>
*
* @date Wed Jan 22 17:41:05 2014
*
* @brief This is the model wrapping Akantu in its dynamic solve
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* LibMultiScale is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __DD2D_DOMAIN_AKANTU_DYNAMIC_HH__
#define __DD2D_DOMAIN_AKANTU_DYNAMIC_HH__
/* -------------------------------------------------------------------------- */
#include "domain_akantu.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template <UInt Dim>
class DomainAkantuDynamic:
public virtual DomainAkantu<Dim>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Typedefs */
/* ------------------------------------------------------------------------ */
//! type definition for points
// typedef FilterMesh<DomainAkantu, Dim> FilterPoint;
//! type definition for vectors (template entry)
typedef VecAkantu _Vec_;
DomainAkantuDynamic(DomainID ID,CommGroup GID);
virtual ~DomainAkantuDynamic();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
//! init function
virtual void init();
//! init heat transfer model
void initHeatTransfer();
//! get temperature
_Vec_ & getT(){return *temperature;};
//! get temperature gradient
_Vec_ & getTVar(){LM_TOIMPLEMENT;};
//! get heat flux
_Vec_ & getHeatFlux(){return *heat_flux;};
void performStep1();
void performStep2();
void performStep3();
void declareParams();
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected:
//! Akantu heat model
akantu::HeatTransferModel * heat_transfer_model;
//! filename from which to load the material object
std::string heat_transfer_material_filename;
//! flag to switch heat transfer model
bool heat_transfer_flag;
//! temperature
_Vec_ * temperature;
//! temperature rate
_Vec_ * temperature_rate;
//! heat flux
_Vec_ * heat_flux;
//! dirichlet boundary geometry for heat model
GeomID heat_boundary_geom;
};
__END_LIBMULTISCALE__
#endif /* __DD2D_DOMAIN_AKANTU_DYNAMIC_HH__ */

Event Timeline