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; }
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); }
public ModelSettings(MeshParameters mesh) : this(mesh, ManualBoundaries.Auto) { }
public NaserModelSettings(MeshParameters mesh) : base(mesh) { }
public NaserModelSettings(MeshParameters mesh, ManualBoundaries manualBoundaries) : base(mesh, manualBoundaries) { }