Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 1.37 KB
struct Suspicious: public PeriodicEngine {
bool acceptsField(Field* f) override { return dynamic_cast<DemField*>(f); }
void run() override;
void render(const GLViewInfo&) override;
boost::mutex errMutex; // guard errPar and errCon while the engine is active
#define woo_dem_Suspicious__CLASS_BASE_DOC_ATTRS \
Suspicious,PeriodicEngine,"Watch the simulation and signal suspicious evolutions, such as sudden increase in contact force beyond usual measure or unsual velocity.", \
((Real,avgVel,NaN,AttrTrait<Attr::readonly>(),"Average velocity norm.")) \
((Real,avgForce,NaN,AttrTrait<Attr::readonly>(),"Average particle force norm.")) \
((Real,avgFn,NaN,AttrTrait<Attr::readonly>(),"Average normal force norm.")) \
((Real,avgFt,NaN,AttrTrait<Attr::readonly>(),"Average shear force norm.")) \
((Real,avgUn,NaN,AttrTrait<Attr::readonly>(),"Average normal overlap.")) \
((Real,relThreshold,100,,"Break on quantity this much larger than the average.")) \
((vector<shared_ptr<Particle>>,errPar,,,"Particle where there was some error (shown in OpenGL).")) \
((vector<shared_ptr<Contact>>,errCon,,,"Contacts where there was some error (shown in OpenGL)"))
You can’t perform that action at this time.