38 |
|
|
39 |
|
/** |
40 |
|
* @class ForceManager ForceManager.hpp "brains/ForceManager.hpp" |
41 |
< |
* @brief ForceManager is responsible for calculating the short range interactions and fortran force |
42 |
< |
* loop |
41 |
> |
* ForceManager is responsible for calculating the short range interactions (c++) and |
42 |
> |
* long range interactions(fortran). If fortran side is not setup before the force calculation, |
43 |
> |
* call SimInfo's update function to settle it down. |
44 |
> |
* @note the reason we delay fortran side's setup is that some applications (Dump2XYZ etc.) |
45 |
> |
* may not need force calculation, why bother? |
46 |
|
*/ |
47 |
|
class ForceManager { |
48 |
|
|
53 |
|
|
54 |
|
virtual void calcForces(bool needPotential, bool needStress); |
55 |
|
|
56 |
+ |
protected: |
57 |
+ |
|
58 |
+ |
virtual void preCalculation(); |
59 |
+ |
|
60 |
+ |
virtual void calcShortRangeInteraction(); |
61 |
+ |
|
62 |
+ |
virtual void calcLongRangeInteraction(); |
63 |
+ |
|
64 |
+ |
virtual void postCalculation(); |
65 |
+ |
|
66 |
|
private: |
67 |
|
SimInfo * info_; |
68 |
|
|