Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68827768
manifold_cylinder.cpp
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
Sat, Jun 29, 02:36
Size
471 B
Mime Type
text/x-c
Expires
Mon, Jul 1, 02:36 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18601946
Attached To
rLAMMPS lammps
manifold_cylinder.cpp
View Options
#include "manifold_cylinder.h"
using
namespace
LAMMPS_NS
;
using
namespace
user_manifold
;
manifold_cylinder
::
manifold_cylinder
(
LAMMPS
*
lmp
,
int
argc
,
char
**
argv
)
:
manifold
(
lmp
)
{}
double
manifold_cylinder
::
g
(
const
double
*
x
)
{
double
R
=
params
[
0
];
double
r2
=
x
[
0
]
*
x
[
0
]
+
x
[
1
]
*
x
[
1
];
return
R
*
R
-
r2
;
}
void
manifold_cylinder
::
n
(
const
double
*
x
,
double
*
n
)
{
n
[
0
]
=
-
2
*
x
[
0
];
n
[
1
]
=
-
2
*
x
[
1
];
n
[
2
]
=
0.0
;
}
Event Timeline
Log In to Comment