9#ifndef IMPNPCTRANSPORT_SLAB_WITH_PORE_H
10#define IMPNPCTRANSPORT_SLAB_WITH_PORE_H
12#include "npctransport_config.h"
16IMPNPCTRANSPORT_BEGIN_NAMESPACE
23class IMPNPCTRANSPORTEXPORT SlabWithPore
106 bool get_pore_radius_is_optimized()
const {
107 return get_particle()->get_is_optimized(get_pore_radius_key());
125IMPNPCTRANSPORT_END_NAMESPACE
The base class for decorators.
Interface to specialized Particle types (e.g. atoms).
Particle * get_particle() const
Returns the particle decorated by this decorator.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
Float get_pore_radius() const
get cylindrical pore radius
void set_pore_radius(double r) const
set cylindrical pore radius
void set_thickness(double thickness)
sets slab thickness
void set_pore_radius_is_optimized(bool tf) const
Set whether the coordinates are optimized.
Float get_thickness() const
returns whether the particle last entered the transport moiety from its
static FloatKey get_pore_radius_key()
Get the key for the pore radius.
void add_to_pore_radius_derivative(double v, DerivativeAccumulator &d)
static FloatKey get_thickness_key()
Get the decorator key for is_last_entry_from_top.
static bool get_is_setup(Model *m, ParticleIndex pi)
Return true if the particle is an instance of SlabWithPore.
Helper macros for implementing Decorators.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
#define IMP_DECORATOR_SETUP_2(Name, FirstArgumentType, first_argument_name, SecondArgumentType, second_argument_name)
#define IMP_DECORATOR_METHODS(Name, Parent)
Index< ParticleIndexTag > ParticleIndex
double Float
Basic floating-point value (could be float, double...).
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.