Page MenuHomec4science

domain_dd_interface.hh
No OneTemporary

File Metadata

Created
Sun, Nov 17, 16:19

domain_dd_interface.hh

/**
* @file domain_dd_interface.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Max Hodapp <max.hodapp@epfl.ch>
*
* @date Wed Jul 09 21:59:47 2014
*
* @brief Common interface to all DD domains
*
* @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 __LIBMULTISCALE_DOMAIN_DD_INTERFACE_HH__
#define __LIBMULTISCALE_DOMAIN_DD_INTERFACE_HH__
/* -------------------------------------------------------------------------- */
#include "container_mesh.hh"
#include "domain_interface.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
/* -------------------------------------------------------------------------- */
class Geometry;
/* -------------------------------------------------------------------------- */
/**
* Class DomainDD
* domain dd
*/
class DomainDDInterface : public DomainInterface {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
DomainDDInterface(CommGroup &group) : DomainInterface(group) {
type = DDTYPE;
};
virtual ~DomainDDInterface(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
//! return the domain geometry
virtual Geometry &getGeom() = 0;
//! initiation function
virtual void init() = 0;
//! compute displacement field for a set of positions
virtual void computeDisplacements(std::vector<Real> &positions,
std::vector<Real> &displacements) {
LM_TOIMPLEMENT;
}
virtual void remesh() { LM_TOIMPLEMENT; }
//! add segments to the dd model
virtual void addSegments(std::vector<RefPointData<3>> &pos,
std::vector<RefGenericElem<3>> &conn,
std::vector<Real> &burgers,
std::vector<Real> &glide_normals) {
LM_TOIMPLEMENT;
};
//! Add hybrid segments to the DD model
virtual void addHybSegments(
std::vector<RefPointData<3>>
&positions, // DD nodes in an atomistic domain
std::vector<RefGenericElem<3>>
&conn, // connectivity between DD nodes in the atomistic domain
Real threshold) // max. distance between two adjacent DD nodes possibly
// generating a hybrid segment
{
LM_TOIMPLEMENT;
};
};
__END_LIBMULTISCALE__
#endif /* __LIBMULTISCALE_DOMAIN_DD_INTERFACE_HH__ */

Event Timeline