Exemple #1
0
        public ModelSettings(MeshParameters mesh, ManualBoundaries manualBoundaries)
        {
            if (mesh == null)
            {
                throw new ArgumentNullException(nameof(mesh));
            }
            if (manualBoundaries == null)
            {
                throw new ArgumentNullException(nameof(manualBoundaries));
            }

            Mesh             = mesh;
            ManualBoundaries = manualBoundaries;
        }
Exemple #2
0
        private static MeshParameters ReadMeshParameters(XElement xelem)
        {
            var nx = xelem.ElementAsIntOrNull("Nx") ?? 0;
            var ny = xelem.ElementAsIntOrNull("Ny") ?? 0;

            var xnz           = xelem.Element("Nz");
            var nz            = xelem.ElementAsIntOrNull("Nz") ?? 0;
            var geomRation    = xnz.AttributeAsDoubleOrNull("geomRation") ?? 1.06;
            var nzIsGeometric = xnz.AttributeAsBoolOrNull("isGeom") ?? false;

            var mesh = new MeshParameters(nx, ny, nz)
            {
                GeometricRation        = geomRation,
                UseGeometricStepAlongZ = nzIsGeometric,
            };

            return(mesh);
        }
Exemple #3
0
 public ModelSettings(MeshParameters mesh)
     : this(mesh, ManualBoundaries.Auto)
 {
 }
Exemple #4
0
 public NaserModelSettings(MeshParameters mesh) : base(mesh)
 {
 }
Exemple #5
0
 public NaserModelSettings(MeshParameters mesh, ManualBoundaries manualBoundaries)
     : base(mesh, manualBoundaries)
 {
 }