Ejemplo n.º 1
0
# assign inputs
_RASModel_, _turbulence_, _printCoeffs_ = IN
RAS = None

try:
    from butterfly.turbulenceProperties import TurbulenceProperties
except ImportError as e:
    msg = '\nFailed to import butterfly:'
    raise ImportError('{}\n{}'.format(msg, e))

RAS = TurbulenceProperties.RAS(_RASModel_, _turbulence_, _printCoeffs_)

# assign outputs to OUT
OUT = (RAS, )
Ejemplo n.º 2
0
                SpalartAllmaras, kEpsilon, kOmega, kOmegaSSTSAS, kkLOmega,
                qZeta, realizableKE, v2f
            Compressible RAS turbulence models:
                LRR, LaunderSharmaKE, RNGkEpsilon, SSG, SpalartAllmaras,
                buoyantKEpsilon, kEpsilon, kOmega, kOmegaSSTSAS,
                realizableKE, v2f
        _turbulence_: Boolean switch to turn the solving of turbulence
            modelling on/off (default: True).
        _print_coeffs_: Boolean switch to print model coeffs to terminal at
            simulation start up (default: True).
    
    Returns:
        RAS: Reynolds-averaged simulation (RAS) turbulence model.
"""

ghenv.Component.Name = "Butterfly_RAS Turbulence Model"
ghenv.Component.NickName = "RAS"
ghenv.Component.Message = 'VER 0.0.05\nJAN_12_2019'
ghenv.Component.Category = "Butterfly"
ghenv.Component.SubCategory = "04::Turbulence"
ghenv.Component.AdditionalHelpFromDocStrings = "1"

try:
    from butterfly.turbulenceProperties import TurbulenceProperties
except ImportError as e:
    msg = '\nFailed to import butterfly:'
    raise ImportError('{}\n{}'.format(msg, e))


RAS = TurbulenceProperties.RAS(_RAS_model_, _turbulence_, _print_coeffs_)