Esempio n. 1
0
    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 Slip()
        p = p or Slip()
        k = k or Slip()
        epsilon = epsilon or Slip()
        nut = Calculated('0')
        T = T or ZeroGradient()

        super(WindTunnelTopAndSidesBoundaryCondition,
              self).__init__('patch', T, U, p, k, epsilon, nut)
Esempio n. 2
0
    def __init__(self, ablConditions, T=None, p=None, nut=None):
        """Init bounday condition."""
        # set default values for an inlet
        U = AtmBoundaryLayerInletVelocity.fromABLConditions(ablConditions)
        k = AtmBoundaryLayerInletK.fromABLConditions(ablConditions)
        epsilon = AtmBoundaryLayerInletEpsilon.fromABLConditions(ablConditions)
        p = p or ZeroGradient()
        nut = nut or Calculated('0')
        T = T or ZeroGradient()

        super(WindTunnelInletBoundaryCondition,
              self).__init__('patch', T, U, p, k, epsilon, nut)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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 FixedValue('(0 0 0)')
        p = p or ZeroGradient()
        k = k or FixedValue('0.1')
        epsilon = epsilon or FixedValue('0.01')
        nut = Calculated('0')
        T = T if T else None
        alphat = ZeroGradient()
        p_rgh = ZeroGradient()

        BoundaryCondition.__init__(self, 'patch', T, U, p,
                                   k, epsilon, nut, alphat, p_rgh)
Esempio n. 5
0
    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
        )
Esempio n. 6
0
    def __init__(self, refLevels=None, 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 ZeroGradient()
        p = p or FixedValue('0')
        k = k or ZeroGradient()
        epsilon = epsilon or ZeroGradient()
        nut = Calculated('0')
        T = T or ZeroGradient()
        alphat = ZeroGradient()
        p_rgh = ZeroGradient()

        super(FixedOutletBoundaryCondition, self).__init__(
            'patch', refLevels, T, U, p, k, epsilon, nut, alphat, p_rgh
        )