tag = 'diffusion model' diag = True T = CGL.newCGNSTree() b = CGL.newBase(T, '{Base#001}', 3, 3) f = CGL.newFlowEquationSet(b) g = CGL.newGoverningEquations(f) d = CGL.newDiffusionModel(g, NPY.ones(6, dtype='int32')) TESTS.append((tag, T, diag)) # ------------------------------------------------------------------------- tag = 'flow equation set all models #1' diag = True T = CGL.newCGNSTree() b = CGL.newBase(T, '{Base#001}', 3, 3) f = CGL.newFlowEquationSet(b) g = CGL.newGoverningEquations(f) d = CGL.newDiffusionModel(g, NPY.zeros(6, dtype='int32')) m = CGL.newGasModel(f) m = CGL.newThermalConductivityModel(f) m = CGL.newViscosityModel(f) m = CGL.newTurbulenceModel(f) m = CGL.newTurbulenceClosure(f) m = CGL.newThermalRelaxationModel(f) m = CGL.newChemicalKineticsModel(f) m = CGL.newEMElectricFieldModel(f) m = CGL.newEMMagneticFieldModel(f) m = CGL.newEMConductivityModel(f) TESTS.append((tag, T, diag)) # -------------------------------------------------------------------------
# --------------------------------------------------------------------------- # pyCGNS - Python package for CFD General Notation System - # See license.txt file in the root directory of this Python module source # --------------------------------------------------------------------------- # import CGNS.PAT.cgnslib as C import CGNS.PAT.cgnserrors as E import CGNS.PAT.cgnskeywords as K import numpy as N # data = C.newChemicalKineticsModel(None) C.newDataArray(data, '{DataArray}') C.newDataClass(data) C.newDimensionalUnits(data) C.newUserDefinedData(data, '{UserDefinedData}') C.newDescriptor(data, '{Descriptor}') # status = '10.8' comment = 'Full SIDS with all optionals' pattern = [data, status, comment] #