2006-09-28 03:51:33 +08:00
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
2007-01-30 08:22:05 +08:00
|
|
|
http://lammps.sandia.gov, Sandia National Laboratories
|
|
|
|
Steve Plimpton, sjplimp@sandia.gov
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
2010-01-12 09:37:48 +08:00
|
|
|
#ifdef REGION_CLASS
|
|
|
|
|
|
|
|
RegionStyle(union,RegUnion)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#ifndef LMP_REGION_UNION_H
|
|
|
|
#define LMP_REGION_UNION_H
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
#include "region.h"
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
class RegUnion : public Region {
|
|
|
|
public:
|
2007-01-30 08:22:05 +08:00
|
|
|
RegUnion(class LAMMPS *, int, char **);
|
2006-09-28 03:51:33 +08:00
|
|
|
~RegUnion();
|
2010-01-12 05:15:28 +08:00
|
|
|
int dynamic_check();
|
2010-01-12 04:25:07 +08:00
|
|
|
int inside(double, double, double);
|
2010-01-09 06:54:13 +08:00
|
|
|
int surface_interior(double *, double);
|
|
|
|
int surface_exterior(double *, double);
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
int nregion;
|
|
|
|
int *list;
|
|
|
|
};
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
}
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
#endif
|
2010-01-12 09:37:48 +08:00
|
|
|
#endif
|
2011-12-16 09:37:13 +08:00
|
|
|
|
|
|
|
/* ERROR/WARNING messages:
|
|
|
|
|
|
|
|
E: Illegal ... command
|
|
|
|
|
|
|
|
Self-explanatory. Check the input script syntax and compare to the
|
|
|
|
documentation for the command. You can use -echo screen as a
|
|
|
|
command-line option when running LAMMPS to see the offending line.
|
|
|
|
|
|
|
|
E: Region union region ID does not exist
|
|
|
|
|
|
|
|
One or more of the region IDs specified by the region union command
|
|
|
|
does not exist.
|
|
|
|
|
|
|
|
*/
|