| 1 |
< |
/* |
| 1 |
> |
/* |
| 2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
| 3 |
|
* |
| 4 |
|
* The University of Notre Dame grants you ("Licensee") a |
| 39 |
|
* such damages. |
| 40 |
|
*/ |
| 41 |
|
|
| 42 |
< |
/** |
| 43 |
< |
* @file ForceManager.hpp |
| 44 |
< |
* @author tlin |
| 45 |
< |
* @date 11/09/2004 |
| 46 |
< |
* @time 10:36am |
| 47 |
< |
* @version 1.0 |
| 48 |
< |
*/ |
| 42 |
> |
/** |
| 43 |
> |
* @file ForceManager.hpp |
| 44 |
> |
* @author tlin |
| 45 |
> |
* @date 11/09/2004 |
| 46 |
> |
* @time 10:36am |
| 47 |
> |
* @version 1.0 |
| 48 |
> |
*/ |
| 49 |
|
|
| 50 |
|
#ifndef BRAINS_FORCEMANAGER_HPP |
| 51 |
|
#define BRAINS_FORCEMANAGER_HPP |
| 54 |
|
|
| 55 |
|
namespace oopse { |
| 56 |
|
|
| 57 |
< |
/** |
| 58 |
< |
* @class ForceManager ForceManager.hpp "brains/ForceManager.hpp" |
| 59 |
< |
* ForceManager is responsible for calculating the short range interactions (c++) and |
| 60 |
< |
* long range interactions(fortran). If fortran side is not setup before the force calculation, |
| 61 |
< |
* call SimInfo's update function to settle it down. |
| 62 |
< |
* @note the reason we delay fortran side's setup is that some applications (Dump2XYZ etc.) |
| 63 |
< |
* may not need force calculation, why bother? |
| 64 |
< |
*/ |
| 65 |
< |
class ForceManager { |
| 57 |
> |
/** |
| 58 |
> |
* @class ForceManager ForceManager.hpp "brains/ForceManager.hpp" |
| 59 |
> |
* ForceManager is responsible for calculating the short range interactions (c++) and |
| 60 |
> |
* long range interactions(fortran). If fortran side is not setup before the force calculation, |
| 61 |
> |
* call SimInfo's update function to settle it down. |
| 62 |
> |
* @note the reason we delay fortran side's setup is that some applications (Dump2XYZ etc.) |
| 63 |
> |
* may not need force calculation, why bother? |
| 64 |
> |
*/ |
| 65 |
> |
class ForceManager { |
| 66 |
|
|
| 67 |
< |
public: |
| 68 |
< |
ForceManager(SimInfo * info) : info_(info) {} |
| 67 |
> |
public: |
| 68 |
> |
ForceManager(SimInfo * info) : info_(info) {} |
| 69 |
|
|
| 70 |
< |
virtual ~ForceManager() {} |
| 70 |
> |
virtual ~ForceManager() {} |
| 71 |
|
|
| 72 |
< |
//public virtual function should be avoided |
| 73 |
< |
/**@todo need refactory */ |
| 74 |
< |
virtual void calcForces(bool needPotential, bool needStress); |
| 72 |
> |
//public virtual function should be avoided |
| 73 |
> |
/**@todo need refactory */ |
| 74 |
> |
virtual void calcForces(bool needPotential, bool needStress); |
| 75 |
|
|
| 76 |
< |
virtual void init() {} |
| 77 |
< |
protected: |
| 76 |
> |
virtual void init() {} |
| 77 |
> |
protected: |
| 78 |
|
|
| 79 |
< |
virtual void preCalculation(); |
| 79 |
> |
virtual void preCalculation(); |
| 80 |
|
|
| 81 |
< |
virtual void calcShortRangeInteraction(); |
| 81 |
> |
virtual void calcShortRangeInteraction(); |
| 82 |
|
|
| 83 |
< |
virtual void calcLongRangeInteraction(bool needPotential, bool needStress); |
| 83 |
> |
virtual void calcLongRangeInteraction(bool needPotential, bool needStress); |
| 84 |
|
|
| 85 |
< |
virtual void postCalculation(); |
| 85 |
> |
virtual void postCalculation(); |
| 86 |
|
|
| 87 |
< |
SimInfo * info_; |
| 87 |
> |
SimInfo * info_; |
| 88 |
|
|
| 89 |
< |
}; |
| 89 |
> |
}; |
| 90 |
|
|
| 91 |
|
} //end namespace oopse |
| 92 |
|
#endif //BRAINS_FORCEMANAGER_HPP |