68 void Init(std::string
const &classifier_file,
69 std::string
const ®ressor_file);
171 double bound_sphere_radius_1, dist_pc_to_plane, scale;
172 Vec3d dir_n, dir_n_ref;
A class representing the geometries associated with a collision.
Definition collision_geometries.hpp:15
An abstract class representing a collision solver for a particle and a wall.
Definition collision_solver_pw.hpp:20
A class representing a general neural network.
Definition general_net.hpp:19
Definition particle.hpp:26
A class that represents a feedforward neural network for regression.
Definition regression_net.hpp:21
A class that represents a collision solver between a particle and a plane using artificial neural net...
Definition solver_ann_pplane.hpp:28
void ResolveUpdate_VolumeBased(CollisionGeometries *const cnt_geoms, double timestep)
Resolves the collision using a volume-based method during update time.
Definition solver_ann_pplane.cpp:169
std::tuple< double, Vec3d, Vec3d > EvaluateContactForces()
Evaluates the contact forces for the collision.
Definition solver_ann_pplane.cpp:256
void ResolveUpdate_LinearSpring(CollisionGeometries *const cnt_geoms, double timestep)
Definition solver_ann_pplane.cpp:122
void ResolveInit_LinearSpring(CollisionGeometries *const cnt_geoms, double timestep)
Definition solver_ann_pplane.cpp:102
void Init(std::string const &classifier_file, std::string const ®ressor_file)
Initializes the collision solver with neural network models from disk.
void ResolveInit_VolumeBased(CollisionGeometries *const cnt_geoms, double timestep)
Resolves the collision at initialization time.
Definition solver_ann_pplane.cpp:145
SolverANNPPlane()
Default constructor for the SolverANNPPlane class.
Definition solver_ann_pplane.cpp:9
void ResolveUpdate(ContactPW *const cnt, double timestep) override
Definition solver_ann_pplane.cpp:86
std::tuple< double, Vec3d > GetPotential(double dist, Vec3d const &nn)
Calculates the potential energy and contact position for the collision.
Definition solver_ann_pplane.cpp:237
netdem::GeneralNet classifier
The neural network model used for classification.
Definition solver_ann_pplane.hpp:31
void ResolveUpdate_PotentialBased(CollisionGeometries *const cnt_geoms, double timestep)
Resolves the collision using a potential-based method during update time.
Definition solver_ann_pplane.cpp:215
netdem::RegressionNet regressor
The neural network model used for regression.
Definition solver_ann_pplane.hpp:34
void ResolveInit_PotentialBased(CollisionGeometries *const cnt_geoms, double timestep)
Resolves the collision using a potential-based method at initialization time.
Definition solver_ann_pplane.cpp:195
void ResolveInit(ContactPW *const cnt, double timestep) override
Definition solver_ann_pplane.cpp:66
CollisionSolverPW * Clone() const override
Definition solver_ann_pplane.cpp:15
bool Detect() override
Detects collisions between the particle and the wall.
Definition solver_ann_pplane.cpp:49
A class representing a wall object in a physics simulation.
Definition wall.hpp:32
Definition bond_entry.hpp:7
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18