Page MenuHomec4science

solid_mechanics_model_cohesive_parallel.hh
No OneTemporary

File Metadata

Created
Sat, Aug 17, 09:55

solid_mechanics_model_cohesive_parallel.hh

/**
* @file solid_mechanics_model_cohesive_parallel.hh
*
* @author Marco Vocialta <marco.vocialta@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date Fri Jun 14 17:09:09 2013
*
* @brief Include of the class members for parallelism
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu 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.
*
* Akantu 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 Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
/// register the tags associated with the parallel synchronizer for
/// cohesive elements
void initParallel(MeshPartition * partition,
DataAccessor * data_accessor = NULL,
bool extrinsic = false);
protected:
void fillSynchronizeNormals(ByElementTypeReal & facet_normals,
GhostType ghost_type);
void synchronizeGhostFacets();
void updateFacetSynchronizers();
void fillGlobalConnectivity(ByElementTypeUInt & global_connectivity,
GhostType ghost_type,
bool just_init);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/// get cohesive elements synchronizer
AKANTU_GET_MACRO(CohesiveSynchronizer,
cohesive_distributed_synchronizer,
const DistributedSynchronizer *);
/* ------------------------------------------------------------------------ */
/* Data Accessor inherited members */
/* ------------------------------------------------------------------------ */
public:
inline UInt getNbQuadsForFacetCheck(const Array<Element> & elements) const;
inline UInt getNbNodesPerElementList(const Array<Element> & elements) const;
inline virtual UInt getNbDataForElements(const Array<Element> & elements,
SynchronizationTag tag) const;
inline virtual void packElementData(CommunicationBuffer & buffer,
const Array<Element> & elements,
SynchronizationTag tag) const;
inline virtual void unpackElementData(CommunicationBuffer & buffer,
const Array<Element> & elements,
SynchronizationTag tag);
template<typename T>
inline void packFacetStressDataHelper(const ByElementTypeArray<T> & data_to_pack,
CommunicationBuffer & buffer,
const Array<Element> & elements) const;
template<typename T>
inline void unpackFacetStressDataHelper(ByElementTypeArray<T> & data_to_unpack,
CommunicationBuffer & buffer,
const Array<Element> & elements) const;
template<typename T, bool pack_helper>
inline void packUnpackFacetStressDataHelper(ByElementTypeArray<T> & data_to_pack,
CommunicationBuffer & buffer,
const Array<Element> & element) const;
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
/// facet synchronizer
FacetSynchronizer * facet_synchronizer;
/// facet stress synchronizer
FacetStressSynchronizer * facet_stress_synchronizer;
/// cohesive elements synchronizer
DistributedSynchronizer * cohesive_distributed_synchronizer;
/// global connectivity
ByElementTypeUInt * global_connectivity;

Event Timeline