Page MenuHomec4science

stimulation_temperature.cc
No OneTemporary

File Metadata

Created
Sun, Aug 4, 05:22

stimulation_temperature.cc

/**
* @file stimulation_temperature.cc
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Srinivasa Babu Ramisetti <srinivasa.ramisetti@epfl.ch>
*
* @date Wed Jul 09 21:59:47 2014
*
* @brief Set a given temperature to a set of DOFs
*
* @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_temperature.hh"
#include "lib_md.hh"
#include "lib_dd.hh"
#include "lib_continuum.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
/* -------------------------------------------------------------------------- */
/* LMDESC TEMPERATURE
This stimulator sets initial velocity to input a temperature.
*/
/* LMEXAMPLE STIMULATION TEMPERATURE TEMP 100 SEED 32 */
/* LMEXAMPLE STIMULATION TEMPERATURE FLUX_FLAG FLUX 1 SEED 32 */
/* LMHERITANCE action_interface */
template <typename _Input>
inline void StimulationTemperature<_Input>::declareParams(){
Stimulation<_Input>::declareParams();
/* LMKEYWORD TEMP
Set the temperature desired to be set
*/
this->parseKeyword("TEMP",temperature);
/* LMKEYWORD SEED
Set the seed for the random generator
*/
this->parseKeyword("SEED",seed);
/* LMKEYWORD HEAT_RATE
Set the heat rate per node (only for finite elements)
*/
this->parseKeyword("HEAT_RATE",heat_rate_per_node,0.);
/* LMKEYWORD FLUX_FLAG
Set the flux per node (only for finite elements)
*/
this->parseTag("FLUX_FLAG",flux_flag,false);
}
/* -------------------------------------------------------------------------- */
DECLARE_STIMULATION(StimulationTemperature,LIST_ATOM_MODEL)
DECLARE_STIMULATION(StimulationTemperature,LIST_DD_MODEL)
DECLARE_STIMULATION(StimulationTemperature,LIST_CONTINUUM_MODEL)
DECLARE_STIMULATION_REFPOINT(StimulationTemperature)
DECLARE_STIMULATION_GENERIC_MESH(StimulationTemperature)
__END_LIBMULTISCALE__

Event Timeline