Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
FluctuatingNRSolver.h
Go to the documentation of this file.
1/*
2 * University of Illinois Open Source License
3 * Copyright 2010-2018 Luthey-Schulten Group,
4 * All rights reserved.
5 *
6 * Developed by: Luthey-Schulten Group
7 * University of Illinois at Urbana-Champaign
8 * http://www.scs.uiuc.edu/~schulten
9 *
10 * Permission is hereby granted, free of charge, to any person obtaining a copy of
11 * this software and associated documentation files (the Software), to deal with
12 * the Software without restriction, including without limitation the rights to
13 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14 * of the Software, and to permit persons to whom the Software is furnished to
15 * do so, subject to the following conditions:
16 *
17 * - Redistributions of source code must retain the above copyright notice,
18 * this list of conditions and the following disclaimers.
19 *
20 * - Redistributions in binary form must reproduce the above copyright notice,
21 * this list of conditions and the following disclaimers in the documentation
22 * and/or other materials provided with the distribution.
23 *
24 * - Neither the names of the Luthey-Schulten Group, University of Illinois at
25 * Urbana-Champaign, nor the names of its contributors may be used to endorse or
26 * promote products derived from this Software without specific prior written
27 * permission.
28 *
29 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
32 * THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
33 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
34 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35 * OTHER DEALINGS WITH THE SOFTWARE.
36 *
37 * Author(s): Elijah Roberts
38 */
39
40#ifndef LM_CME_FLUCTUATINGNRSOLVER_H_
41#define LM_CME_FLUCTUATINGNRSOLVER_H_
42
43#include <map>
44#include <list>
45#include <string>
47#include "rng/RandomGenerator.h"
48
49using std::map;
50using std::list;
51using std::string;
55
56namespace lm {
57namespace cme {
58
60{
61protected:
79
80public:
82 virtual ~FluctuatingNRSolver();
83 virtual void setReactionModel(lm::io::ReactionModel * rm);
84 virtual void buildModel(const uint numberSpecies, const uint numberReactions, const uint * initialSpeciesCounts, const uint * reactionType, const double * k, const int * S, const uint * D, const uint kCols=1);
85 virtual void buildModel(const uint numberSpecies, const uint numberReactions, const uint * initialSpeciesCounts, const uint * reactionType, const double * K, const int * S, const uint * D, const double * nvar, const double * ntau, const double noiseRecalcFraction, const uint kCols=1);
86
87protected:
88 virtual void destroyModel();
89 static double ouPropensity(double time, uint * speciesCounts, void * pargs);
90};
91
92}
93}
94
95#endif
unsigned int uint
Definition Types.h:52
uint numberReactions
Definition CMESolver.h:273
int * S
Definition CMESolver.h:277
uint * initialSpeciesCounts
Definition CMESolver.h:274
uint * speciesCounts
Definition CMESolver.h:275
uint numberSpecies
Definition CMESolver.h:271
uint * D
Definition CMESolver.h:278
virtual void destroyModel()
Definition FluctuatingNRSolver.cpp:271
FluctuatingNRSolver()
Definition FluctuatingNRSolver.cpp:68
static double ouPropensity(double time, uint *speciesCounts, void *pargs)
Definition FluctuatingNRSolver.cpp:278
virtual void setReactionModel(lm::io::ReactionModel *rm)
Definition FluctuatingNRSolver.cpp:76
virtual ~FluctuatingNRSolver()
Definition FluctuatingNRSolver.cpp:72
virtual void buildModel(const uint numberSpecies, const uint numberReactions, const uint *initialSpeciesCounts, const uint *reactionType, const double *k, const int *S, const uint *D, const uint kCols=1)
Definition FluctuatingNRSolver.cpp:134
NextReactionSolver()
Definition NextReactionSolver.cpp:79
An object that tracks the available resources for the main simulation runner.
Definition ResourceAllocator.h:57
A queue that contains information on reaction events.
Definition ReactionQueue.h:51
Base class for random number generators in Lattice Microbes.
Definition RandomGenerator.h:51
Definition CMESolver.cpp:72
Definition Capsule.cpp:46
Definition CMESolver.h:74
double noiseTau
Definition FluctuatingNRSolver.h:71
double noiseVariance
Definition FluctuatingNRSolver.h:70
int rngNext
Definition FluctuatingNRSolver.h:77
RandomGenerator * rng
Definition FluctuatingNRSolver.h:75
double noise
Definition FluctuatingNRSolver.h:72
void * basePropensityFunction
Definition FluctuatingNRSolver.h:65
double noisyKInitialValue
Definition FluctuatingNRSolver.h:68
double * noisyK
Definition FluctuatingNRSolver.h:67
double normRngValues[TUNE_LOCAL_RNG_CACHE_SIZE]
Definition FluctuatingNRSolver.h:76
uint oui
Definition FluctuatingNRSolver.h:69
OUPropensityArgs(void *basePropensityFunction, void *basePropensityFunctionArgs, double *noisyK, double noisyKInitialValue, uint oui, double noiseVariance, double noiseTau, RandomGenerator *rng)
Definition FluctuatingNRSolver.h:64
double previousTime
Definition FluctuatingNRSolver.h:74
uint lastOUJumpNumber
Definition FluctuatingNRSolver.h:73
void * basePropensityFunctionArgs
Definition FluctuatingNRSolver.h:66