Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82203180
stimulation_field.cc
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
Tue, Sep 10, 03:55
Size
2 KB
Mime Type
text/x-c++
Expires
Thu, Sep 12, 03:55 (2 d)
Engine
blob
Format
Raw Data
Handle
20665695
Attached To
rLIBMULTISCALE LibMultiScale
stimulation_field.cc
View Options
/**
* @file stimulation_field.cc
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Till Junge <till.junge@epfl.ch>
*
* @date Fri Jul 25 11:42:31 2014
*
* @brief Impose a field to a set of degree of freedom
*
* @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/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "lm_common.hh"
#include "stimulation_field.hh"
#include "lib_md.hh"
#include "lib_dd.hh"
#include "lib_continuum.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
/* -------------------------------------------------------------------------- */
/* LMDESC FIELD
Impose a field to a set of degree of freedom\ \
This stimulator set displacements/velocities/forces based on the content of a compute
*/
/* LMHERITANCE action_interface */
/* LMEXAMPLE STIMULATION fd FIELD INPUT md FIELD position COMPUTE mycompute */
template
<
typename
Cont
>
void
StimulationField
<
Cont
>::
declareParams
(){
Stimulation
<
Cont
>::
declareParams
();
/* LMKEYWORD FIELD
Set the field which should be set by the stimulator
The possible values are:
\begin{itemize}
\item position0
\item position
\item displacement
\item velocity
\item force
\end{itemize}
*/
this
->
parseKeyword
(
"FIELD"
,
ftype
);
/* LMKEYWORD COMPUTE
Provide the compute which should be used to set a field
*/
this
->
parseKeyword
(
"COMPUTE"
,
compute_id
,
invalidFilter
);
/* LMKEYWORD ADDITIVE
Flag whether the COMPUTE should be added to the existing field or replace
it. defaults to false.
*/
this
->
parseTag
(
"ADDITIVE"
,
additive_flag
,
false
);
}
/* -------------------------------------------------------------------------- */
DECLARE_STIMULATION
(
StimulationField
,
LIST_ATOM_MODEL
)
DECLARE_STIMULATION
(
StimulationField
,
LIST_DD_MODEL
)
DECLARE_STIMULATION
(
StimulationField
,
LIST_CONTINUUM_MODEL
)
DECLARE_STIMULATION_REFPOINT
(
StimulationField
)
DECLARE_STIMULATION_GENERIC_MESH
(
StimulationField
)
/* -------------------------------------------------------------------------- */
__END_LIBMULTISCALE__
Event Timeline
Log In to Comment