36 ComputeCFL::ComputeCFL (
const std::string&
name ) : common::
Action(name)
39 .description(
"Time step")
40 .pretty_name(
"Time step")
45 .description(
"Wave Speed divided by characteristic length")
46 .pretty_name(
"Wave Speed")
51 .description(
"Courant number, local to a cell")
84 cfl[i][0] = dt[i][0] * ws[i][0];
std::string name(ComponentWrapper &self)
bool is_null(T ptr)
predicate for comparison to nullptr
Safe pointer to an object. This is the supported method for referring to components.
Helper class to create the Builder and place it in the factory.
common::ComponentBuilder< ComputeCFL, common::Action, LibUFEM > ComputeCFL_Builder
Handle< mesh::Field > m_time_step
Basic Classes for Solver applications used by CF.
Handle< mesh::Field > m_cfl
! Wave speed field
Basic Classes for Mesh applications used by COOLFluiD.
ComponentHandle< Component >::type find_component_ptr_with_name(Component &parent, StringConverter name)
virtual void execute()
Compute the right hand side and wave speed in configured fields.
Top-level namespace for coolfluid.
Component that executes an action. Implementation of the IAction interface as a component, exposing the execute function as a signal.
unsigned int Uint
typedef for unsigned int
Handle< Component > handle()
Get a handle to the component.
Handle< mesh::Field > m_wave_speed
! Time step field
SelectOptionType< T >::type & add(const std::string &name, const T &default_value=T())
Most basic kernel library.