Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91089599
lbalance.h
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
Thu, Nov 7, 19:12
Size
1 KB
Mime Type
text/x-c
Expires
Sat, Nov 9, 19:12 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22194502
Attached To
rLAMMPS lammps
lbalance.h
View Options
/* ----------------------------------------------------------------------
LIGGGHTS - LAMMPS Improved for General Granular and Granular Heat
Transfer Simulations
www.liggghts.com | www.cfdem.com
Christoph Kloss, christoph.kloss@cfdem.com
LIGGGHTS is based on LAMMPS
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
//NP pure virtual class
#ifndef LMP_LBALANCE_H
#define LMP_LBALANCE_H
#include "neighbor.h"
#include "string.h"
#define BIG 1.0e20
#define SMALL 1.0e-4
#define DELTA 1
#define FABS(a) ((a) > 0 ? (a) : (-a))
namespace
LAMMPS_NS
{
class
Lbalance
:
protected
Pointers
{
public:
Lbalance
(
class
LAMMPS
*
lmp
,
int
narg
,
char
**
arg
)
:
Pointers
(
lmp
)
{
int
n
=
strlen
(
arg
[
0
])
+
1
;
style
=
new
char
[
n
];
strcpy
(
style
,
arg
[
0
]);
iarg
=
1
;
}
virtual
~
Lbalance
()
{
delete
[]
style
;
}
virtual
void
loadbalance_local_boxes
()
=
0
;
double
cutneighmax
()
{
return
neighbor
->
cutneighmax
;}
protected:
int
iarg
;
char
*
style
;
};
}
#endif
Event Timeline
Log In to Comment