Beispiel #1
0
        public static FoamDictionary pressureInletOutletVelocity(string phi, IMonitor mon = null)
        {
            FoamDictionary d = internalFieldValuePatchField("pressureInletOutletVelocity", mon);

            d.SetChild("phi", phi);
            return(d);
        }
Beispiel #2
0
        public static FoamDictionary compressible_alphaWallFunction(double prt, IMonitor mon = null)
        {
            FoamDictionary d = internalFieldValuePatchField("compressible::alphatWallFunction");

            d.SetChild("Prt", prt.ToString());
            return(d);
        }
Beispiel #3
0
        public static FoamDictionary prghPressure(IMonitor mon = null)
        {
            FoamDictionary d = internalFieldValuePatchField("prghPressure");

            d.SetChild("p", "$internalField");
            return(d);
        }
Beispiel #4
0
        public static FoamDictionary typePatchField(string typeName, IMonitor mon = null)
        {
            FoamDictionary d = new FoamDictionary(mon);

            d.SetChild("type", typeName);
            return(d);
        }
Beispiel #5
0
        public static FoamDictionary internalFieldValuePatchField(string typeName, IMonitor mon = null)
        {
            FoamDictionary d = new FoamDictionary(mon);

            d.SetChild("type", typeName);
            d.SetChild("value", "$internalField");
            return(d);
        }
Beispiel #6
0
        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);
        }
Beispiel #7
0
        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);
        }
Beispiel #8
0
        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);
        }
Beispiel #9
0
        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);
        }
Beispiel #10
0
        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);
        }
Beispiel #11
0
        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);
        }