Surfaces.hpp
102 surface_generators.push_back([=](PhaseList const& phases) -> Vec<Surface> { return { item }; }); // item is a Surface object
106 surface_generators.push_back([=](PhaseList const& phases) -> Vec<Surface> { return { item(phases) }; }); // item is a GeneralSurface object; use operator()(PhaseList) to convert to Surface
GeneralSurface(String const &name)
Construct a GeneralSurface object with given unique surface name.
auto setAreaModel(SurfaceAreaModel const &model) -> GeneralSurface &
Set the area model of the surface.
GeneralSurface(String const &name, SurfaceAreaModel const &area_model)
Construct a GeneralSurface object with given unique surface name and area model.
auto set(SurfaceAreaModel const &model) -> GeneralSurface &
Set the area model of the surface (equivalent to GeneralSurface::setAreaModel).
auto areaModel() const -> SurfaceAreaModel const &
Return the area model of the surface.
auto setName(String const &name) -> GeneralSurface &
Set the unique name of the surface.
Used to represent a surface across which chemical reactions take place.
Definition: Surface.hpp:31
Used to represent a collection of surfaces across which chemical reactions take place.
Definition: Surfaces.hpp:77
auto add(T const &item) -> void
Add a surface generator into the Surfaces container.
Definition: Surfaces.hpp:93
auto convert(PhaseList const &phases) const -> Vec< Surface >
Convert this Surfaces object into a vector of Surface objects.
Surfaces(SurfaceConvertible const &... surfaces)
Construct a Surfaces object with given Surface, GeneralSurface, or SurfaceGenerator objects.
Definition: Surfaces.hpp:85
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
Fn< Vec< Surface >(PhaseList const &phases)> SurfaceGenerator
The function type for the generation of surfaces with given phases in the chemical system.
Definition: Surfaces.hpp:32
std::function< F > Fn
Convenient alias for std::function<R(Args...)>.
Definition: Types.hpp:110