Ejemplo n.º 1
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)
Ejemplo n.º 2
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."""
        U = U or FixedValue('(0 0 0)')
        p = p or ZeroGradient()
        k = k or KqRWallFunction('0.1')
        epsilon = epsilon or EpsilonWallFunction(0.01)
        nut = nut or NutkWallFunction(0.01)
        T = T or ZeroGradient()
        alphat = alphat or AlphatJayatillekeWallFunction(
            value='0', isUniform=True, Prt='0.85')

        p_rgh = p_rgh or FixedFluxPressure(
            value='0', isUniform=True, rho='rhok')

        BoundaryCondition.__init__(self, 'wall', refLevels, T, U, p, k,
                                   epsilon, nut, alphat, p_rgh)
Ejemplo n.º 3
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
        )
Ejemplo n.º 4
0
 def __init__(self, T=None, U=None, p=None, k=None, epsilon=None, nut=None):
     """Init bounday condition."""
     U = U or FixedValue('(0 0 0)')
     p = p or ZeroGradient()
     k = k or KqRWallFunction('$internalField', isUnifrom=False)
     epsilon = epsilon or EpsilonWallFunction('$internalField',
                                              isUnifrom=False)
     nut = nut or NutkWallFunction('0.0')
     T = T or ZeroGradient()
     super(WindTunnelWallBoundaryCondition,
           self).__init__('wall', T, U, p, k, epsilon, nut)
Ejemplo n.º 5
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)
Ejemplo n.º 6
0
    def __init__(self, ablConditions, T=None, U=None, p=None, k=None, epsilon=None):
        """Init bounday condition."""
        U = U or FixedValue('(0 0 0)')
        p = p or ZeroGradient()
        k = k or ZeroGradient()
        epsilon = epsilon or ZeroGradient()
        nut = NutkAtmRoughWallFunction.fromABLConditions(ablConditions,
                                                         'uniform 0')
        T = T or ZeroGradient()

        super(WindTunnelGroundBoundaryCondition, self).__init__(
            'wall', T, U, p, k, epsilon, nut
        )
Ejemplo n.º 7
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
        )