GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Classes | Namespaces | Macros
ElementFactory.hpp File Reference
#include <stdio.h>
#include <fstream>
#include <map>
#include "GranOO3/FEM/Element.hpp"

Go to the source code of this file.

Classes

class  GranOO3::FEM::ElementFactory
 

Namespaces

 GranOO3
 
 GranOO3::FEM
 This namespace group the entire FEM library.
 

Macros

#define DECLARE_ELEMENT(CLASS)
 
#define RECORD_ELEMENT(CLASS)    const bool CLASS::IsRegistered = ElementFactory::get().record<CLASS>();
 

Macro Definition Documentation

◆ DECLARE_ELEMENT

#define DECLARE_ELEMENT (   CLASS)
Value:
public: \
static const bool IsRegistered; \
static CLASS *new_element(std::vector<unsigned int> connectivity) { return new CLASS(connectivity); };

◆ RECORD_ELEMENT

#define RECORD_ELEMENT (   CLASS)     const bool CLASS::IsRegistered = ElementFactory::get().record<CLASS>();