Page MenuHomec4science

compute_mesh.hh
No OneTemporary

File Metadata

Created
Wed, Jul 10, 10:21

compute_mesh.hh

/**
* @file compute_mesh.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date Wed Jul 09 21:59:47 2014
*
* @brief This computes generate an independent mesh from points and connectivities provided as computes
*
* @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_COMPUTE_MESH_HH__
#define __LIBMULTISCALE_COMPUTE_MESH_HH__
/* -------------------------------------------------------------------------- */
#include "ref_point_data.hh"
#include "container_mesh.hh"
#include "filter_interface.hh"
#include "filter.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template <typename _Input>
class ComputeMesh :
public ComponentLMContainer<_Input,ContainerGenericMesh,OUTPUT_REF>,
public FilterInterface
{
/* ------------------------------------------------------------------------ */
/* Typedefs */
/* ------------------------------------------------------------------------ */
public:
typedef typename ContainerGenericMesh::ContainerNodes ContainerNodes;
typedef typename ContainerGenericMesh::ContainerElems ContainerElems;
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
ComputeMesh(const std::string & name, ComponentLMInterface & d):
ComponentLMContainer<_Input,ContainerGenericMesh,OUTPUT_REF>(d),
FilterInterface(name){};
ComputeMesh(const std::string & name, UInt dim = spatial_dimension):
ComponentLMContainer<_Input,ContainerGenericMesh,OUTPUT_REF>(dim),
FilterInterface(name){};
virtual ~ComputeMesh(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
void build(_Input & cont);
void declareParams();
virtual void visit(ComponentLMOut<_Input> & obj);
public:
void connect(ActionManager & f);
void connect(FilterManager & f);
private:
virtual void build();
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
//! id of the filter where connectivity is stored
FilterID connectivity;
//! the number of nodes per element
UInt nb_nodes_per_elem;
};
__END_LIBMULTISCALE__
#endif /* __LIBMULTISCALE_COMPUTE_MESH_HH__ */

Event Timeline