예제 #1
0
파일: basic.py 프로젝트: deneick/pymor
    def assemble(self, mu=None):
        if self.parametric:
            from pymor.operators.constructions import FixedParameterOperator

            return FixedParameterOperator(self, mu=mu, name=self.name + '_assembled')
        else:
            return self
예제 #2
0
    def assemble(self, mu=None):
        """Assemble the operator for given |parameter values|.

        The result of the method strongly depends on the given operator.
        For instance, a matrix-based operator will assemble its matrix, a |LincombOperator|
        will try to form the linear combination of its operators, whereas an arbitrary
        operator might simply return a
        :class:`~pymor.operators.constructions.FixedParameterOperator`.
        The only assured property of the assembled operator is that it no longer
        depends on a |Parameter|.

        Parameters
        ----------
        mu
            The |parameter values| for which to assemble the operator.

        Returns
        -------
        Parameter-independent, assembled |Operator|.
        """
        if self.parametric:
            from pymor.operators.constructions import FixedParameterOperator

            return FixedParameterOperator(self,
                                          mu=mu,
                                          name=self.name + '_assembled')
        else:
            return self
예제 #3
0
def thermalblock_fixedparam_factory(xblocks, yblocks, diameter, seed):
    from pymor.operators.constructions import FixedParameterOperator
    op, mu, U, V, sp, rp = thermalblock_factory(xblocks, yblocks, diameter,
                                                seed)
    return FixedParameterOperator(op, mu=mu), None, U, V, sp, rp