本文整理汇总了C#中PFSSection类的典型用法代码示例。如果您正苦于以下问题:C# PFSSection类的具体用法?C# PFSSection怎么用?C# PFSSection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PFSSection类属于命名空间,在下文中一共展示了PFSSection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SRC_SELECTION_CRITERION
public SRC_SELECTION_CRITERION(string pfsname)
{
_pfsHandle = new PFSSection(pfsname);
SRC_FLOW = new SRC_FLOW("SRC_FLOW");
_pfsHandle.AddKeyword(SRC_FLOW._keyword);
}
示例2: AddNewSingleWellCommandArea
/// <summary>
/// Adds a new command area that only contains the necessary sections and keywords for a single well.
/// </summary>
public void AddNewSingleWellCommandArea()
{
PFSSection Nc = new PFSSection("CommandArea");
Nc.AddKeyword(new PFSKeyword("AreaName", PFSParameterType.String,""));
Nc.AddKeyword(new PFSKeyword("AreaCodeID", PFSParameterType.String, ""));
Nc.AddKeyword(new PFSKeyword("AreaCode", PFSParameterType.Integer, 0));
PFSSection Sources = new PFSSection("Sources");
Sources.AddKeyword(new PFSKeyword("NumberOfSources", PFSParameterType.Integer, 1));
PFSSection Source1 = new PFSSection("Source1");
Source1.AddKeyword(new PFSKeyword("SourceTypeCode", PFSParameterType.Integer, 2));
Source1.AddKeyword(new PFSKeyword("WaterApplication", PFSParameterType.Integer, 1));
Source1.AddKeyword(new PFSKeyword("DirectApplication", PFSParameterType.Integer, 1));
Source1.AddKeyword(new PFSKeyword("WellXposSIWS", PFSParameterType.Double, 1));
Source1.AddKeyword(new PFSKeyword("WellYposSIWS", PFSParameterType.Double, 1));
Source1.AddKeyword(new PFSKeyword("ScreenTopDepthSIWS", PFSParameterType.Double, 1));
Source1.AddKeyword(new PFSKeyword("CapacitySIWS", PFSParameterType.Double, 100));
Source1.AddKeyword(new PFSKeyword("ThresholdDepthSIWS", PFSParameterType.Double, 1));
Source1.AddKeyword(new PFSKeyword("ScreenBottomDepthSIWS", PFSParameterType.Double, 1));
Source1.AddKeyword(new PFSKeyword("IrrigationLicenseIncluded", PFSParameterType.Integer, 0));
Source1.AddKeyword(new PFSKeyword("TYPE", PFSParameterType.Integer, 2));
Sources.AddSection(Source1);
Nc.AddSection(Sources);
CommandArea CA = new CommandArea(Nc);
_commandAreas.Add(CA);
_pfsHandle.AddSection(Nc);
NO_AREAS++;
}
示例3: FORMAT_VERSION
public FORMAT_VERSION(string pfsname)
{
_pfsHandle = new PFSSection(pfsname);
_pfsHandle.AddKeyword(new PFSKeyword("verno", PFSParameterType.Integer, 0));
}
示例4: Drainage
internal Drainage(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "Level":
_level = new Bathymetry(sub);
break;
case "TimeConstant":
_timeConstant = new Topography(sub);
break;
case "DrainCode":
_drainCode = new Topography(sub);
break;
case "DistributedOptionCode":
_distributedOptionCode = new Topography(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
}
示例5: Links
public Links(string pfsname)
{
_pfsHandle = new PFSSection(pfsname);
Event_definition = new Event_definition("Event_definition");
_pfsHandle.AddKeyword(Event_definition._keyword);
}
示例6: MODFLOW
public MODFLOW(string pfsname)
{
_pfsHandle = new PFSSection(pfsname);
_pfsHandle.AddKeyword(new PFSKeyword("CalculateLevels", PFSParameterType.Integer, 0));
}
示例7: WEL_CFG
internal WEL_CFG(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "WELLDATA":
WELLDATA = new WELLDATA(sub);
break;
case "WELLFIELD":
WELLFIELD = new WELLFIELD(sub);
break;
case "Foreground":
Foreground = new Foreground(sub);
break;
case "Background":
Background = new Foreground(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
}
示例8: Discharge_Parameters
public Discharge_Parameters(string pfsname)
{
_pfsHandle = new PFSSection(pfsname);
Muskingum = new Muskingum("Muskingum");
_pfsHandle.AddKeyword(Muskingum._keyword);
}
示例9: CALIBRATION_SPECIFICATION
internal CALIBRATION_SPECIFICATION(PFSSection Section)
{
_pfsHandle = Section;
MODEL_As = new List<MOUSE_Catchments>();
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "GLOBAL_PARAMETERS":
GLOBAL_PARAMETERS = new GLOBAL_PARAMETERS(sub);
break;
case "MEASUREMENTS":
MEASUREMENTS = new Model_B(sub);
break;
default:
if (sub.Name.Substring(0,6).Equals("MODEL_"))
{
MODEL_As.Add(new MOUSE_Catchments(sub));
break;
}
_unMappedSections.Add(sub.Name);
break;
}
}
}
示例10: Result
internal Result(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "ResultDetailedTS":
_resultDetailedTS = new STRESSPERIOD_PROPPAGE(sub);
break;
case "ResultViewer":
_resultViewer = new ResultViewer(sub);
break;
case "ResultM11DetailedTS":
_resultM11DetailedTS = new STRESSPERIOD_PROPPAGE(sub);
break;
case "RunStatistics":
_runStatistics = new RunStatistics(sub);
break;
case "GeoScene3D":
_geoScene3D = new GeoScene3D(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
}
示例11: VegNo_1
internal VegNo_1(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "UserDefVegDevelopment":
_userDefVegDevelopment = new UserDefVegDevelopment(sub);
break;
case "GrowthModVegDevelopment":
_growthModVegDevelopment = new GrowthModVegDevelopment(sub);
break;
case "Irrigation":
_irrigation = new Irrigation(sub);
break;
default:
if (sub.Name.Substring(0,6).Equals("Stage_"))
{
_stage_1s.Add(new Stage_13(sub));
break;
}
_unMappedSections.Add(sub.Name);
break;
}
}
}
示例12: CompControlParaModSZ
internal CompControlParaModSZ(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "CompControlParaModLMG":
_compControlParaModLMG = new CompControlParaModLMG(sub);
break;
case "CompControlParaModPCG2":
_compControlParaModPCG2 = new CompControlParaModPCG2(sub);
break;
case "CompControlParaModPCG4":
_compControlParaModPCG4 = new CompControlParaModPCG4(sub);
break;
case "CompControlParaModSIP":
_compControlParaModSIP = new CompControlParaModSIP(sub);
break;
case "CompControlParaModSOR":
_compControlParaModSOR = new CompControlParaModSOR(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
}
示例13: MOUSE_RUNOFF_parameters
public MOUSE_RUNOFF_parameters(string pfsname)
{
_pfsHandle = new PFSSection(pfsname);
_pfsHandle.AddKeyword(new PFSKeyword("TRAP_Computation", PFSParameterType.Boolean, true));
_pfsHandle.AddKeyword(new PFSKeyword("Simulation_start", PFSParameterType.String, ""));
_pfsHandle.AddKeyword(new PFSKeyword("Simulation_end", PFSParameterType.String, ""));
_pfsHandle.AddKeyword(new PFSKeyword("Dt_FixedSec", PFSParameterType.Integer, 0));
_pfsHandle.AddKeyword(new PFSKeyword("Dt_WetPeriodSec", PFSParameterType.Integer, 0));
_pfsHandle.AddKeyword(new PFSKeyword("Dt_DryPeriodSec", PFSParameterType.Integer, 0));
_pfsHandle.AddKeyword(new PFSKeyword("RDII_dtSRC_hour", PFSParameterType.Integer, 0));
_pfsHandle.AddKeyword(new PFSKeyword("RDII_dtFRC_sec", PFSParameterType.Integer, 0));
_pfsHandle.AddKeyword(new PFSKeyword("Allow_OverWrite", PFSParameterType.Boolean, true));
Model_type = new Model_type("Model_type");
_pfsHandle.AddKeyword(Model_type._keyword);
}
示例14: ModelCompWQ
internal ModelCompWQ(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "SimTitleWQ":
_simTitleWQ = new SimTitle(sub);
break;
case "SimulationPeriodWQ":
_simulationPeriodWQ = new SimulationPeriodWQ(sub);
break;
case "WQTSC":
_wQTSC = new WQTSC(sub);
break;
case "ColloidControlPara":
_colloidControlPara = new ColloidControlPara(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
}
示例15: MOUSE_T_Results
internal MOUSE_T_Results(PFSSection Section)
{
_pfsHandle = Section;
for (int i = 1; i <= Section.GetSectionsNo(); i++)
{
PFSSection sub = Section.GetSection(i);
switch (sub.Name)
{
case "Nodes":
Nodes = new Nodes(sub);
break;
case "Links":
Links = new Links(sub);
break;
case "Emissions":
Emissions = new Links(sub);
break;
default:
_unMappedSections.Add(sub.Name);
break;
}
}
}