def __init__(self, T=None, U=None, p=None, k=None, epsilon=None, nut=None): """Init bounday condition.""" # set default values for an inlet U = U or InletOutlet('uniform (0 0 0)', '$internalField') p = p or FixedValue('$pressure') k = k or InletOutlet('uniform $turbulentKE', '$internalField') epsilon = epsilon or InletOutlet('uniform $turbulentEpsilon', '$internalField') nut = nut or Calculated('0') T = T or ZeroGradient() super(WindTunnelOutletBoundaryCondition, self).__init__('patch', T, U, p, k, epsilon, nut)
def __init__(self, T=None, U=None, p=None, k=None, epsilon=None, nut=None, alphat=None, p_rgh=None): """Init bounday condition.""" # set default values for an inlet U = U or InletOutlet(value='uniform (0 0 0)', inletValue='uniform (0 0 0)') p = p or FixedValue('0') k = k or InletOutlet(value='uniform 0.1', inletValue='uniform 0.1') epsilon = epsilon or InletOutlet(value='uniform 0.1', inletValue='uniform 0.1') nut = Calculated('0') T = T or ZeroGradient() alphat = alphat or ZeroGradient() p_rgh = p_rgh or FixedValue('0') super(FixedOutletBoundaryCondition, self).__init__( 'patch', T, U, p, k, epsilon, nut, alphat, p_rgh )