Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92006025
stimulation_rigidify.hh
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
Sat, Nov 16, 13:34
Size
2 KB
Mime Type
text/x-c++
Expires
Mon, Nov 18, 13:34 (2 d)
Engine
blob
Format
Raw Data
Handle
22362374
Attached To
rLIBMULTISCALE LibMultiScale
stimulation_rigidify.hh
View Options
/**
* @file stimulation_rigidify.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @date Mon Nov 25 17:17:19 2013
*
* @brief This stimulator allows to reduce the force to let a group act like a rigid body
*
* @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 STIMULATION_RIGIDIFY_H
#define STIMULATION_RIGIDIFY_H
/* -------------------------------------------------------------------------- */
#include "stimulation.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template
<
typename
_Input
>
class
StimulationRigidify
:
public
Stimulation
<
_Input
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
StimulationRigidify
(
const
std
::
string
&
name
,
ComponentLMInterface
&
d
)
:
Stimulation
<
_Input
>
(
name
,
d
){
for
(
UInt
i
=
0
;
i
<
3
;
++
i
)
{
global_force
[
i
]
=
0.
;
}
factor
=
1.
;
};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
void
declareParams
();
void
stimulate
(
_Input
&
cont
,
UInt
stage
);
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
Quantity
<
Force
,
3
>
global_force
;
Real
factor
;
};
__END_LIBMULTISCALE__
#endif
/* __LIBMULTISCALE_RIGIDIFY_HH__ */
Event Timeline
Log In to Comment