Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78037555
compute_add_ddsegments.hh-old
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 18, 00:31
Size
3 KB
Mime Type
text/x-c++
Expires
Tue, Aug 20, 00:31 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19972644
Attached To
rLIBMULTISCALE LibMultiScale
compute_add_ddsegments.hh-old
View Options
/**
* @file compute_add_ddsegments.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Max Hodapp <max.hodapp@epfl.ch>
*
* @date Wed Jul 09 21:59:47 2014
*
* @brief This compute allows to add segments to a DDD model
*
* @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_ADD_DDSEGMENTS_HH__
#define __LIBMULTISCALE_COMPUTE_ADD_DDSEGMENTS_HH__
/* -------------------------------------------------------------------------- */
#include "compute.hh"
#include "action_manager.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template <typename _Input>
class ComputeAddDDSegments : public Compute<_Input>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
ComputeAddDDSegments(const std::string & name, ComponentLMInterface & d):
Compute<_Input>(name,d){
ActionManager::getManager().addObject(this,false);
}
/* -------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
//! most generic build function
void build(_Input & cont);
void action(){
if (!this->input) {
DUMP("this filter has no input",DBG_WARNING);
}
else this->input->accept(*this);
}
/* -------------------------------------------------------------------------- */
virtual void declareParams();
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
//! the domain ID to be used to insert new points
DomainID dom;
//! the burgers vectors per segments
FilterID burgers;
//! the glide plane normals per segments
FilterID glide_normals;
int isHyb; // are hybrid segments added to an existing DD line?
Real threshold; // max. distance between two nodes possibly forming a hybrid segment
};
__END_LIBMULTISCALE__
#endif /* __LIBMULTISCALE_COMPUTE_ADD_DDSEGMENTS_HH__ */
Event Timeline
Log In to Comment