AMR-Wind
v0.1.0
CFD solver for wind plant simulations
|
A collection of Physics models instances that are active during a simulation. More...
#include <Physics.H>
Public Member Functions | |
template<typename T > | |
T & | get () |
Return a concrete physics instance. More... | |
template<typename T > | |
const T & | get () const |
Return a concrete physics instance. More... | |
Public Member Functions inherited from amr_wind::CollMgr< PhysicsMgr, Physics > | |
CollMgr ()=default | |
CollMgr (const CollMgr &)=delete | |
~CollMgr ()=default | |
CollMgr & | operator= (const CollMgr &)=delete |
Physics & | create (const std::string &key, Args &&... args) |
Create a new object and register it in the vector and setup lookup options. More... | |
TypeVector & | objects () |
Return a vector of the registered objects. More... | |
const TypeVector & | objects () const |
bool | contains (const std::string &key) const |
Query if an object exists using the lookup key. More... | |
Physics & | operator() (const std::string &key) |
Return the object corresponding to a lookup key. More... | |
const Physics & | operator() (const std::string &key) const |
T & | operator() (const std::string &key) |
Return object for a lookup key cast into its exact class definition. More... | |
Additional Inherited Members | |
Public Types inherited from amr_wind::CollMgr< PhysicsMgr, Physics > | |
using | TypePtr = std::unique_ptr< Physics > |
using | TypeVector = amrex::Vector< TypePtr > |
Protected Attributes inherited from amr_wind::CollMgr< PhysicsMgr, Physics > | |
TypeVector | m_obj_vec |
Collection of objects registered so far. More... | |
std::unordered_map< std::string, int > | m_obj_map |
Key word based lookup. More... | |
A collection of Physics models instances that are active during a simulation.
|
inline |
Return a concrete physics instance.
|
inline |
Return a concrete physics instance.