00001 //*****************************************************************// 00002 // Albany 2.0: Copyright 2012 Sandia Corporation // 00003 // This Software is released under the BSD license detailed // 00004 // in the file "license.txt" in the top-level Albany directory // 00005 //*****************************************************************// 00006 00007 #if !defined(AAdapt_RandomCriterion_hpp) 00008 #define AAdapt_RandomCriterion_hpp 00009 00010 #include "Fracture.h" 00011 #include "Albany_STKDiscretization.hpp" 00012 00013 namespace AAdapt { 00014 00023 class RandomCriterion: public LCM::AbstractFractureCriterion { 00024 00025 public: 00026 00030 RandomCriterion(int num_dim, 00031 stk::mesh::EntityRank& element_rank, 00032 Albany::STKDiscretization& stk); 00033 00034 00049 bool 00050 computeFractureCriterion(stk::mesh::Entity& entity, double p); 00051 00052 private: 00053 00054 RandomCriterion(); 00055 RandomCriterion(const RandomCriterion&); 00056 RandomCriterion& operator=(const RandomCriterion&); 00057 00058 Albany::STKDiscretization& stk_; 00059 00060 }; // class RandomCriterion 00061 00062 00063 } // namespace AAdapt 00064 00065 #endif // RandomCriterion_hpp