public static FoamDictionary internalFieldValuePatchField(string typeName, IMonitor mon = null) { FoamDictionary d = new FoamDictionary(mon); d.SetChild("type", typeName); d.SetChild("value", "$internalField"); return(d); }
public static FoamDictionary typeValuePatchField <T>(string typeName, T value, IMonitor mon = null) { FoamDictionary d = new FoamDictionary(mon); d.SetChild("type", typeName); d.SetChild("value", value.ToString()); return(d); }
public static FoamDictionary surfaceNormalFixedValue <T>(T v, IMonitor mon = null) { FoamDictionary d = new FoamDictionary(mon); d.SetChild("type", "surfaceNormalFixedValue"); d.SetChild("refValue", new UniformValue <T>(v).ToString()); return(d); }
public static FoamDictionary inletOutlet <T>(string phi, T inletValue, T value, IMonitor mon = null) { FoamDictionary d = new FoamDictionary(mon); d.SetChild("type", "inletOutlet"); d.SetChild("phi", phi); d.SetChild("inletValue", inletValue.ToString()); d.SetChild("value", value.ToString()); return(d); }
public static FoamDictionary uniformInletOutlet <T>(string phi, T inletValue, T value, IMonitor mon = null) { FoamDictionary d = new FoamDictionary(mon); d.SetChild("type", "inletOutlet"); d.SetChild("phi", phi); d.SetChild("inletValue", "uniform " + inletValue); d.SetChild("value", "uniform " + value); return(d); }
public static FoamDictionary compressible_alphaWallFunction(double prt, IMonitor mon = null) { FoamDictionary d = internalFieldValuePatchField("compressible::alphatWallFunction"); d.SetChild("Prt", prt.ToString()); return(d); }
public static FoamDictionary pressureInletOutletVelocity(string phi, IMonitor mon = null) { FoamDictionary d = internalFieldValuePatchField("pressureInletOutletVelocity", mon); d.SetChild("phi", phi); return(d); }
public static FoamDictionary prghPressure(IMonitor mon = null) { FoamDictionary d = internalFieldValuePatchField("prghPressure"); d.SetChild("p", "$internalField"); return(d); }
public static FoamDictionary typePatchField(string typeName, IMonitor mon = null) { FoamDictionary d = new FoamDictionary(mon); d.SetChild("type", typeName); return(d); }
public static FoamDictionary coefficientWall(List <WallLayer> wallLayers, double h, double Ta, IMonitor mon = null) { FoamDictionary d = typePatchField("externalWallHeatFluxTemperature", mon); d.SetChild("model", "coefficient"); d.SetChild("h", "uniform " + h); d.SetChild("Ta", "uniform " + Ta); d.SetChild("thicknessLayers", thicknessLayersStr(wallLayers)); d.SetChild("kappaLayers", kappaLayersStr(wallLayers)); d.SetChild("kappaMethod", "fluidThermo"); d.SetChild("value", "$internalField"); return(d); }
public static FoamDictionary fluxWall(List <WallLayer> wallLayers, double flux, IMonitor mon = null) { FoamDictionary d = typePatchField("externalWallHeatFluxTemperature", mon); d.SetChild("mode", "flux"); d.SetChild("q", "uniform " + flux); d.SetChild("thicknessLayers", thicknessLayersStr(wallLayers)); d.SetChild("kappaLayers", kappaLayersStr(wallLayers)); d.SetChild("kappaMethod", "fluidThermo"); d.SetChild("value", "$internalField"); return(d); }