x = CGL.newZoneGridConnectivity(z) x = CGL.newGridConnectivity(x, '{GridConnectivity}', z[0]) CGL.newPointRange(x, value=NPY.array([[1, 1], [1, 1], [1, 1]], dtype=NPY.int32, order='Fortran')) p = CGL.newGridConnectivityProperty(x) m = CGL.newPeriodic(p) d = CGL.newDataClass(m, CGK.NondimensionalParameter_s) w = CGL.newConvergenceHistory(b) d = CGL.newDataClass(w, CGK.NondimensionalParameter_s) i = CGL.newIntegralData(b, '{IntegralData}') d = CGL.newDataClass(i, CGK.NondimensionalParameter_s) i = CGL.newUserDefinedData(b, '{UserDefinedData}') d = CGL.newDataClass(i, CGK.NondimensionalParameter_s) i = CGL.newGravity(b) d = CGL.newDataClass(i, CGK.NondimensionalParameter_s) f = CGL.newFlowEquationSet(b) d = CGL.newDataClass(f, CGK.NondimensionalParameter_s) m = CGL.newGasModel(f) d = CGL.newDataClass(m, CGK.NondimensionalParameter_s) m = CGL.newViscosityModel(f) d = CGL.newDataClass(m, CGK.NondimensionalParameter_s) m = CGL.newThermalConductivityModel(f) d = CGL.newDataClass(m, CGK.NondimensionalParameter_s) m = CGL.newThermalRelaxationModel(f) d = CGL.newDataClass(m, CGK.NondimensionalParameter_s) m = CGL.newChemicalKineticsModel(f) d = CGL.newDataClass(m, CGK.NondimensionalParameter_s) m = CGL.newTurbulenceClosure(f) d = CGL.newDataClass(m, CGK.NondimensionalParameter_s)
# --------------------------------------------------------------------------- # 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.newGravity(None) status = '-' comment = '' pattern = [data, status, comment]
# 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.newBase(None, '{Base}', 3, 3) C.newZone(data, '{Zone}', N.array([[5, 4, 0], [7, 6, 0], [9, 8, 0]], order='F')) C.newSimulationType(data) C.newIntegralData(data, '{IntegralData}') C.newBaseIterativeData(data, '{BaseIterativeData}') C.newConvergenceHistory(data) C.newFamily(data, '{Family}') C.newFlowEquationSet(data) C.newReferenceState(data) C.newAxisymmetry(data) C.newRotatingCoordinates(data) C.newGravity(data) C.newDataClass(data) C.newDimensionalUnits(data) C.newUserDefinedData(data, '{UserDefinedData}') C.newDescriptor(data, '{Descriptor}') status = '6.2' comment = 'Full SIDS with all optionals children' pattern = [data, status, comment]