Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90891997
manifold_plane_wiggle.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
Tue, Nov 5, 17:35
Size
519 B
Mime Type
text/x-c
Expires
Thu, Nov 7, 17:35 (2 d)
Engine
blob
Format
Raw Data
Handle
22031897
Attached To
rLAMMPS lammps
manifold_plane_wiggle.cpp
View Options
#include "manifold_plane_wiggle.h"
#include <math.h>
using namespace LAMMPS_NS;
using namespace user_manifold;
manifold_plane_wiggle::manifold_plane_wiggle( LAMMPS *lmp, int argc, char **argv ) :
manifold(lmp)
{}
double manifold_plane_wiggle::g( const double *x )
{
double a = params[0];
double w = params[1];
return x[2] - a*sin(w*x[0]);
}
void manifold_plane_wiggle::n( const double *x, double *n )
{
double a = params[0];
double w = params[1];
n[2] = 1;
n[1] = 0.0;
n[0] = -a*w*cos(x[0]);
}
Event Timeline
Log In to Comment