faunus
Static Public Member Functions | List of all members
Faunus::InsertMoleculesInSpace Class Reference

Insert molecules into space. More...

#include <space.h>

Static Public Member Functions

static void insertMolecules (const json &j, Space &spc)
 Insert molecules into Space based on JSON input. More...
 

Detailed Description

Insert molecules into space.

Stateless class that helps inserting molecules into Space, based on json input. json input should be an array of molecules, for example:

- salt: { molarity: 0.1 } # number calc. from volume
- water: { N: 256, inactive: 6 } # 250 active, 6 inactive
- dummy: { N: 100, inactive: true } # all 100 inactive

Member Function Documentation

◆ insertMolecules()

void Faunus::InsertMoleculesInSpace::insertMolecules ( const json j,
Space spc 
)
static

Insert molecules into Space based on JSON input.

Parameters
jJSON array
spcSpace to insert into

The documentation for this class was generated from the following files: