COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Coding your own Components

When to decide if your class should be a component?

When it is any or more of the following:

Example

A new component always has to inherit from a parent class which is also a component. A simple example is the class common::Group, which adds actually no extra functionality.

namespace cf3 {
namespace common {
class Common_API Group : public Component
{
public: // functions
static std::string type_name () { return "Group"; }
Group ( const std::string& name ) : Component(name) {}
virtual ~Group() {}
};
} //namespace common
} //namespace cf3

Noteworthy here is:


Send comments to:
COOLFluiD Web Admin