public SolverData() { FieldEpsilon = new FieldEpsilon(); FieldK = new FieldK(); FieldNut = new BoundaryField(); FieldP = new FieldP(); FieldR = new FieldR(); FieldU = new FieldU(); #region Handlers _controlDictHandler = new ControlDictHandler(); _transportPropHandler = new TransportPropertiesHandler(); _blockMeshHandler = new BlockMeshDictHandler(); _turbineArrayPropHandler = new TurbineArrayPropHandler(); _turbineProperiesHandler = new TurbineProperiesHandler("NREL5MWRef", true); _fieldEpsilonHandler = new FieldEpsilonHandler(); _fieldKHandler = new FieldKHandler(); _fieldPHandler = new FieldPHandler(); _fieldUHandler = new FieldUHandler(); _fieldRHandler = new FieldRHandler(); _fvSolutionHandler = new FvSolutionHandler(); _fvSchemesHandler = new FvSchemesHandler(); _decomposeParDictHandler = new DecomposeParDictHandler(); _turbulencePropertiesHandler = new TurbulencePropertiesHandler(); _airfoilPropertiesHandler = new AirfoilPropertiesHandler(null); #endregion #region Data BlockMeshDict = (BlockMeshDictData) _blockMeshHandler.Read(null); ControlDict = (ControlDictData) _controlDictHandler.Read(null); TransportProperties = (TransportPropertiesData) _transportPropHandler.Read(null); TurbineArrayProperties = (TurbineArrayPropData) _turbineArrayPropHandler.Read(null); TurbineProperties = (TurbinePropertiesData) _turbineProperiesHandler.Read(null); FvSolution = (FvSolutionData) _fvSolutionHandler.Read(null); FvScheme = (FvSchemesData) _fvSchemesHandler.Read(null); DecomposeParDict = (DecomposeParDictData) _decomposeParDictHandler.Read(null); TurbulenceProperties = (TurbulencePropertiesData)_turbulencePropertiesHandler.Read(null); AirfoilData = _airfoilPropertiesHandler.ReadDefault(); #endregion /* extra post-initialize calls */ InitTransportProperties(TransportProperties); InitFieldK(FieldK); InitFieldEpsilon(FieldEpsilon); InitFieldP(FieldP); InitFieldR(FieldR); InitFieldU(FieldU); AirfoilProperties = new AirfoilPropertiesData(); ProcessingSettings = new ProcessingSettings(); }
private static void InitFieldEpsilon(FieldEpsilon f) { f.InternalField = 34.4993m; f.BottomType = PatchType.epsilonWallFunction; f.BottomValue.Cmu = 0.09m; f.BottomValue.kappa = 0.41m; f.BottomValue.E = 9.8m; f.BottomValue.value.Type = PatchValueType.Uniform; f.BottomValue.value.Value = 34.4993m; f.TopType = PatchType.epsilonWallFunction; f.TopValue.Cmu = 0.09m; f.TopValue.kappa = 0.41m; f.TopValue.E = 9.8m; f.TopValue.value.Type = PatchValueType.Uniform; f.TopValue.value.Value = 34.4993m; f.WestType = PatchType.fixedValue; f.WestValue.Type = PatchValueType.Uniform; f.WestValue.Value = 34.4993m; f.EastType = PatchType.zeroGradient; f.NorthType = PatchType.zeroGradient; f.SouthType = PatchType.fixedValue; f.SouthValue.Type = PatchValueType.Uniform; f.SouthValue.Value = 34.4993m; }