public override bool Update(Dictionary <string, FoamDictionary> dicts, IMonitor mon = null) { var res = base.Update(dicts, mon); var d1 = dicts["T.gas"].SetChild(PatchName, CommonPatch.powerWall(Layers, Power, mon)); var d2 = dicts["T.steel"].SetChild(PatchName, CommonPatch.powerWall(Layers, Power, mon)); return(res && !d1.IsNull && !d2.IsNull); }
public override bool Update(Dictionary <string, FoamDictionary> dicts, IMonitor mon = null) { var res = base.Update(dicts, mon); var d1 = dicts["T.gas"].SetChild(PatchName, CommonPatch.coefficientWall(Layers, HeatTransferCoefficent, AmbientTemperature, mon)); var d2 = dicts["T.steel"].SetChild(PatchName, CommonPatch.coefficientWall(Layers, HeatTransferCoefficent, AmbientTemperature, mon)); return(res && !d1.IsNull && !d2.IsNull); }
public override bool Update(Dictionary <string, FoamDictionary> dicts, IMonitor mon = null) { base.Update(dicts); foreach (FoamDictionary d in dicts.Values) { d.SetChild(PatchName, CommonPatch.symmetry(mon)); } return(true); }
public override bool Update(Dictionary <string, FoamDictionary> dicts, IMonitor mon = null) { try { dicts["U"].SetChild(PatchName, CommonPatch.slip(mon)); dicts["p"].SetChild(PatchName, CommonPatch.zeroGradient(mon)); dicts["k"].SetChild(PatchName, CommonPatch.kqRWallFunction(mon)); dicts["epsilon"].SetChild(PatchName, CommonPatch.epsilonWallFunction(mon)); dicts["nut"].SetChild(PatchName, CommonPatch.nutkWallFunction(mon)); return(true); } catch (Exception e) { mon.ErrorLine(e.Message); return(false); } }
public override bool Update(Dictionary <string, FoamDictionary> dicts, IMonitor mon = null) { //throw new NotImplementedException(); try { dicts["U"].SetChild(PatchName, CommonPatch.zeroGradient(mon)); dicts["p"].SetChild(PatchName, CommonPatch.uniformFixedValue <double>(0.0, mon)); dicts["k"].SetChild(PatchName, CommonPatch.zeroGradient(mon)); dicts["epsilon"].SetChild(PatchName, CommonPatch.zeroGradient(mon)); dicts["nut"].SetChild(PatchName, CommonPatch.calculated(mon)); return(true); } catch (Exception e) { mon.ErrorLine(e.Message); return(false); } }
public override bool Update(Dictionary <string, FoamDictionary> dicts, IMonitor mon = null) { base.Update(dicts, mon); dicts["alpha.gas"].SetChild(PatchName, CommonPatch.uniformInletOutlet <double>("phi.gas", 1, 1, mon)); dicts["alphat.gas"].SetChild(PatchName, CommonPatch.calculated(mon)); dicts["alphat.steel"].SetChild(PatchName, CommonPatch.calculated(mon)); dicts["epsilon.gas"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phi.gas", "$internalField", "$internalField", mon)); dicts["epsilon.steel"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phi.steel", "$internalField", "$internalField", mon)); dicts["epsilonm"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phim", "$internalField", "$internalField", mon)); dicts["k.gas"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phi.gas", "$internalField", "$internalField", mon)); dicts["k.steel"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phi.steel", "$internalField", "$internalField", mon)); dicts["km"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phim", "$internalField", "$internalField", mon)); dicts["nut.gas"].SetChild(PatchName, CommonPatch.calculated(mon)); dicts["nut.steel"].SetChild(PatchName, CommonPatch.calculated(mon)); dicts["p"].SetChild(PatchName, CommonPatch.calculated(mon)); dicts["p_rgh"].SetChild(PatchName, CommonPatch.prghPressure(mon)); dicts["T.gas"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phi.gas", "$internalField", "$internalField", mon)); dicts["T.steel"].SetChild(PatchName, CommonPatch.inletOutlet <string>("phi.steel", "$internalField", "$internalField", mon)); dicts["Theta"].SetChild(PatchName, CommonPatch.uniformInletOutlet <double>("phim", 1.0e-7, 10e-7, mon)); dicts["U.gas"].SetChild(PatchName, CommonPatch.pressureInletOutletVelocity("phi.gas", mon)); dicts["U.steel"].SetChild(PatchName, CommonPatch.pressureInletOutletVelocity("phi.steel", mon)); dicts["tracer"].SetChild(PatchName, CommonPatch.zeroGradient(mon)); return(true); }