SPH
ElasticDeformationSolver.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "sph/kernel/Kernel.h"
5 #include "timestepping/ISolver.h"
6 
8 
13 private:
14  AutoPtr<IBasicFinder> finder;
15 
17  IScheduler& scheduler;
18 
19  Vector gravity;
20 
22 
25 
27  Array<Array<Size>> neighsPerParticle;
28 
30 
32  Array<Vector> r0;
33 
35  Array<Float> V0;
36 
37 public:
39  const RunSettings& settings,
41 
42  virtual void integrate(Storage& storage, Statistics& stats) override;
43 
44  virtual void create(Storage& storage, IMaterial& material) const override;
45 };
46 
NAMESPACE_SPH_BEGIN
Definition: BarnesHut.cpp:13
Boundary conditions.
Base interface for all solvers.
SPH kernels.
#define NAMESPACE_SPH_END
Definition: Object.h:12
Generic dynamically allocated resizable storage.
Definition: Array.h:43
virtual void create(Storage &storage, IMaterial &material) const override
Initializes all quantities needed by the solver in the storage.
virtual void integrate(Storage &storage, Statistics &stats) override
Computes derivatives of all time-dependent quantities.
ElasticDeformationSolver(IScheduler &scheduler, const RunSettings &settings, AutoPtr< IBoundaryCondition > &&bc)
Material settings and functions specific for one material.
Definition: IMaterial.h:110
Interface that allows unified implementation of sequential and parallelized versions of algorithms.
Definition: Scheduler.h:27
Base class for all solvers.
Definition: ISolver.h:20
Object holding various statistics about current run.
Definition: Statistics.h:22
Container storing all quantities used within the simulations.
Definition: Storage.h:230