28 using namespace common;
38 m_component(component),
39 m_field_manager(*component.create_static_component<
FieldManager>(
"FieldManager"))
48 m_domain =
Handle<Domain>(m_component.access_component(m_domain_uri));
59 throw SetupError(
FromHere(),
"No component found at URI " + m_domain_uri.string() +
" when acessing domain from " + m_component.uri().string());
64 throw SetupError(
FromHere(),
"Error while acessing domain from " + m_component.uri().string() +
": component at " + m_domain_uri.string() +
" is not a domain");
92 .description(
"Domain to solve")
93 .pretty_name(
"Domain")
98 .pretty_name(
"Physical Model")
99 .description(
"Physical Model")
FieldManager & m_field_manager
std::string name(ComponentWrapper &self)
bool is_null(T ptr)
predicate for comparison to nullptr
RegistTypeInfo< Solver, LibSolver > regist_Solver_type
mesh::FieldManager & field_manager()
Access to the FieldManager, which is a static subcomponent of Solver.
Handle< physics::PhysModel > m_physics
Raw access to the physics.
URI uri() const
Construct the full path.
physics::PhysModel & physics()
Checked access to the physical model.
void trigger_physical_model()
Implementation(Component &component)
PropertyList & properties()
boost::scoped_ptr< Implementation > m_implementation
Top-level namespace for coolfluid.
Solver(const std::string &name)
virtual void mesh_loaded(mesh::Mesh &mesh)
Called when a mesh is loaded into the domain that is associated with this solver. ...
virtual ~Solver()
Virtual destructor.
virtual void mesh_changed(mesh::Mesh &mesh)
Called when a mesh is changed into the domain that is associated with this solver.
mesh::Domain & domain()
Checked access to the domain (throws if domain is not properly configured)
Handle< Component > handle()
Get a handle to the component.
math::VariableManager & variable_manager()
Access to the VariableManager.
Component & mark_basic()
marks this component as basic.
SelectOptionType< T >::type & add(const std::string &name, const T &default_value=T())
Handle< Domain > m_domain
Base class for defining CF components.