tlm_adjoint.fenics.variables
FEniCS variables.
Module Contents
- class tlm_adjoint.fenics.variables.Constant(value=None, *args, name=None, domain=None, space=None, space_type='primal', shape=None, comm=None, static=False, cache=None, **kwargs)
Extends the DOLFIN Constant class.
- Parameters:
value – The initial value. None indicates a value of zero.
name – A
strname.domain – The domain on which the
Constantis defined.space – The space on which the
Constantis defined.space_type – The space type for the
Constant. ‘primal’, ‘dual’, ‘conjugate’, or ‘conjugate_dual’.shape – A
tupleofintobjects defining the shape of the value.comm – The communicator for the
Constant.static – Defines whether the
Constantis static, meaning that it is stored by reference in checkpointing/replay, and an associated tangent-linear variable is zero.cache – Defines whether results involving the
Constantmay be cached. Default static.
Remaining arguments are passed to the DOLFIN Constant constructor.
- class tlm_adjoint.fenics.variables.Function(*args, space_type='primal', static=False, cache=None, **kwargs)
Extends the DOLFIN Function class.
- Parameters:
space_type – The space type for the
Function. ‘primal’, ‘dual’, ‘conjugate’, or ‘conjugate_dual’.static – Defines whether the
Functionis static, meaning that it is stored by reference in checkpointing/replay, and an associated tangent-linear variable is zero.cache – Defines whether results involving the
Functionmay be cached. Default static.
Remaining arguments are passed to the DOLFIN Function constructor.
- class tlm_adjoint.fenics.variables.ZeroConstant(*, name=None, domain=None, space=None, space_type='primal', shape=None, comm=None)
A
Constantwhich is flagged as having a value of zero.Arguments are passed to the
Constantconstructor, together with static=True and cache=True.
- class tlm_adjoint.fenics.variables.ZeroFunction(*args, **kwargs)
A
Functionwhich is flagged as having a value of zero.Arguments are passed to the
Functionconstructor, together with static=True and cache=True.
- class tlm_adjoint.fenics.variables.ReplacementConstant(x, count)
Represents a symbolic DOLFIN Constant, but has no value.
- class tlm_adjoint.fenics.variables.ReplacementFunction(x, count)
Represents a symbolic DOLFIN Function, but has no value.
- class tlm_adjoint.fenics.variables.ReplacementZeroConstant(*args, **kwargs)
Represents a symbolic DOLFIN Constant which is zero, but has no value.
- class tlm_adjoint.fenics.variables.ReplacementZeroFunction(*args, **kwargs)
Represents a symbolic DOLFIN Function which is zero, but has no value.