ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
LocalDampingIGP.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
#ifndef __LOCALDAMPING_IGP_H
14
#define __LOCALDAMPING_IGP_H
15
16
// -- project includes --
17
#include "
Model/IGParam.h
"
18
#include "
Foundation/vec3.h
"
19
// -- STL includes --
20
#include <string>
21
22
using
std::string;
23
27
class
CLocalDampingIGP
:
public
AIGParam
28
{
29
protected
:
30
string
m_type
;
// type of damping (rot/lin)
31
double
m_visc
;
32
double
m_dt
;
33
34
public
:
35
CLocalDampingIGP
();
36
CLocalDampingIGP
(
const
string
& type,
37
const
string
&name,
38
double
viscosity,
39
double
dt
40
);
41
42
virtual
void
packInto
(
CVarMPIBuffer
*)
const
;
43
void
setType
(
const
string
& type){
m_type
=type;}
44
void
setVisc
(
double
v){
m_visc
=v;}
45
double
getVisc
()
const
{
return
m_visc
;}
46
void
setTimeStep
(
double
t){
m_dt
=t;}
47
void
setTimeStepSize
(
double
t){
setTimeStep
(t);}
48
double
getTimeStep
()
const
{
return
m_dt
;}
49
50
virtual
std::string
getTypeString
()
const
{
return
m_type
;}
51
};
52
53
CLocalDampingIGP
*
extractLocalDampingIGP
(
AMPIBuffer
*);
54
55
#endif //__LOCALDAMPING_IGP_H
Model
LocalDampingIGP.h
Generated on Mon May 6 2013 23:26:30 for ESyS-Particle by
1.8.3.1