def rhs(ts, coor, mode=None, expression=None, **kwargs): if mode == 'qp': if expression is None: expression = '0.0 * x' val = TestCommon.eval_coor_expression( expression, coor ) val.shape = (val.shape[0], 1, 1) return {'val' : val}
def ebc(ts, coor, **kwargs): expression = solution[0] val = TestCommon.eval_coor_expression(expression, coor) return nm.atleast_1d(val)
def ebc(ts, coor, solution=None): expression = solution[0] val = TestCommon.eval_coor_expression( expression, coor ) return nm.atleast_1d( val )
def rhs( ts, coor, region, ig, expression = None ): if expression is None: expression = '0.0 * x' val = TestCommon.eval_coor_expression( expression, coor ) return {'val' : nm.atleast_1d( val )}