예제 #1
0
 /// <summary>
 /// Adds an entry to <see cref="FieldOptions"/>.
 /// </summary>
 /// <param name="Degree">
 /// Polynomial degree of the DG field; if negative, the application choses a default value.
 /// </param>
 /// <param name="DGFieldName"></param>
 /// <param name="SaveOpt"></param>
 public void AddFieldOption(string DGFieldName, int Degree = -1, FieldOpts.SaveToDBOpt SaveOpt = FieldOpts.SaveToDBOpt.TRUE)
 {
     FieldOptions.Add(DGFieldName, new FieldOpts()
     {
         Degree   = Degree,
         SaveToDB = SaveOpt
     });
 }
예제 #2
0
 public void SetFieldOptions(int VelDegree, int LevSetDegree, FieldOpts.SaveToDBOpt SaveFilteredVelocity = FieldOpts.SaveToDBOpt.TRUE, FieldOpts.SaveToDBOpt SaveCurvature = FieldOpts.SaveToDBOpt.TRUE)
 {
     FieldOptions.Add(VariableNames.VelocityX, new FieldOpts()
     {
         Degree   = VelDegree,
         SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add(VariableNames.VelocityY, new FieldOpts()
     {
         Degree   = VelDegree,
         SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("FilteredVelocityX", new FieldOpts()
     {
         SaveToDB = SaveFilteredVelocity
     });
     FieldOptions.Add("FilteredVelocityY", new FieldOpts()
     {
         SaveToDB = SaveFilteredVelocity
     });
     FieldOptions.Add("SurfaceForceDiagnosticX", new FieldOpts()
     {
         SaveToDB = FieldOpts.SaveToDBOpt.FALSE
     });
     FieldOptions.Add("SurfaceForceDiagnosticY", new FieldOpts()
     {
         SaveToDB = FieldOpts.SaveToDBOpt.FALSE
     });
     FieldOptions.Add(VariableNames.Pressure, new FieldOpts()
     {
         Degree   = VelDegree - 1,
         SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("PhiDG", new FieldOpts()
     {
         SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("Phi", new FieldOpts()
     {
         Degree   = LevSetDegree,
         SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("Curvature", new FieldOpts()
     {
         Degree   = LevSetDegree * 2,
         SaveToDB = SaveCurvature
     });
     FieldOptions.Add(VariableNames.Temperature, new FieldOpts()
     {
         Degree   = VelDegree,
         SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
 }
예제 #3
0
 public void SetFieldOptions(int VelDegree, int LevSetDegree, FieldOpts.SaveToDBOpt SaveFilteredVelocity = FieldOpts.SaveToDBOpt.TRUE, FieldOpts.SaveToDBOpt SaveCurvature = FieldOpts.SaveToDBOpt.TRUE)
 {
     FieldOptions.Add(VariableNames.VelocityX, new FieldOpts()
     {
         Degree = VelDegree, SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add(VariableNames.VelocityY, new FieldOpts()
     {
         Degree = VelDegree, SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("FilteredVelocityX", new FieldOpts()
     {
         SaveToDB = SaveFilteredVelocity
     });
     FieldOptions.Add("FilteredVelocityY", new FieldOpts()
     {
         SaveToDB = SaveFilteredVelocity
     });
     FieldOptions.Add(VariableNames.Pressure, new FieldOpts()
     {
         Degree = VelDegree - 1, SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add(VariableNames.StressXX, new FieldOpts()
     {
         Degree = VelDegree, SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add(VariableNames.StressXY, new FieldOpts()
     {
         Degree = VelDegree, SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add(VariableNames.StressYY, new FieldOpts()
     {
         Degree = VelDegree, SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("PhiDG", new FieldOpts()
     {
         SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("Phi", new FieldOpts()
     {
         Degree = LevSetDegree, SaveToDB = FieldOpts.SaveToDBOpt.TRUE
     });
     FieldOptions.Add("Curvature", new FieldOpts()
     {
         Degree = LevSetDegree * 2, SaveToDB = SaveCurvature
     });
 }