Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact physics #143

Merged
merged 23 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CabanaPD.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <CabanaPD_Types.hpp>
#include <CabanaPD_config.hpp>

#include <force/CabanaPD_ForceModels_Contact.hpp>
#include <force/CabanaPD_ContactModels.hpp>
#include <force/CabanaPD_ForceModels_LPS.hpp>
#include <force/CabanaPD_ForceModels_PMB.hpp>
#include <force/CabanaPD_Force_Contact.hpp>
Expand Down
39 changes: 30 additions & 9 deletions src/CabanaPD_Solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,26 +732,47 @@ class SolverFracture
// ===============================================================

template <class MemorySpace, class InputsType, class ParticleType,
class ForceModel, class... ContactModelType>
class ForceModel>
auto createSolverElastic( InputsType inputs,
std::shared_ptr<ParticleType> particles,
ForceModel model, ContactModelType... contact_model )
ForceModel model )
{
return std::make_shared<
SolverElastic<MemorySpace, InputsType, ParticleType, ForceModel>>(
inputs, particles, model );
}

template <class MemorySpace, class InputsType, class ParticleType,
class ForceModel, class ContactModelType>
auto createSolverElastic( InputsType inputs,
std::shared_ptr<ParticleType> particles,
ForceModel model, ContactModelType contact_model )
{
return std::make_shared<SolverElastic<MemorySpace, InputsType, ParticleType,
ForceModel, ContactModelType...>>(
inputs, particles, model, contact_model... );
ForceModel, ContactModelType>>(
inputs, particles, model, contact_model );
}

template <class MemorySpace, class InputsType, class ParticleType,
class ForceModel, class... ContactModelType>
class ForceModel>
auto createSolverFracture( InputsType inputs,
std::shared_ptr<ParticleType> particles,
ForceModel model, ContactModelType... contact_model )
ForceModel model )
{
return std::make_shared<
SolverFracture<MemorySpace, InputsType, ParticleType, ForceModel,
ContactModelType...>>( inputs, particles, model,
contact_model... );
SolverFracture<MemorySpace, InputsType, ParticleType, ForceModel>>(
inputs, particles, model );
}

template <class MemorySpace, class InputsType, class ParticleType,
class ForceModel, class ContactModelType>
abisner marked this conversation as resolved.
Show resolved Hide resolved
auto createSolverFracture( InputsType inputs,
std::shared_ptr<ParticleType> particles,
ForceModel model, ContactModelType contact_model )
{
return std::make_shared<SolverFracture<
MemorySpace, InputsType, ParticleType, ForceModel, ContactModelType>>(
inputs, particles, model, contact_model );
}

} // namespace CabanaPD
Expand Down
Loading