Basic calcfunction-based workflows for demonstration purposes.
aiida.workflows.arithmetic.add_multiply.
add
add_multiply
Add two numbers and multiply it with a third.
multiply
Implementation of the MultiplyAddWorkChain for testing and demonstration purposes.
aiida.workflows.arithmetic.multiply_add.
MultiplyAddWorkChain
Bases: aiida.engine.processes.workchains.workchain.WorkChain
aiida.engine.processes.workchains.workchain.WorkChain
WorkChain to multiply two numbers and add a third, for testing and demonstration purposes.
__abstractmethods__
__module__
_abc_impl
Add two numbers using the ArithmeticAddCalculation calculation job plugin.
define
Specify inputs and outputs.
Multiply two integers.
result
Add the result to the outputs.
validate_result
Make sure the result is not negative.