Skip to content

Noise in compiled custom class #574

Answered by david-zwicker
Gregogc asked this question in Q&A
Discussion options

You must be logged in to vote

Noise cannot simply be added in the right hand side of the partial differential equation, since stochastic calculus of partial differential equations is complicated. However, additive noise should be supported by the base class PDEBase. You can simply set the noise variance using the noise argument when you call super().__init__(), e.g., super().__init__(noise=1). You can also give two numbers if you want different variance for the different fields.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gregogc
Comment options

Answer selected by Gregogc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants