//#r "D:\BoSSS2\experimental\public\src\L4-application\BoSSSpad\bin\Release\net5.0\bossspad.dll"
#r "BoSSSpad.dll"
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Data;
using System.Globalization;
using System.Threading;
using ilPSP;
using ilPSP.Utils;
using BoSSS.Platform;
using BoSSS.Foundation;
using BoSSS.Foundation.Grid;
using BoSSS.Foundation.Grid.Classic;
using BoSSS.Foundation.IO;
using BoSSS.Solution;
using BoSSS.Solution.Control;
using BoSSS.Solution.GridImport;
using BoSSS.Solution.Statistic;
using BoSSS.Solution.Utils;
using BoSSS.Solution.Gnuplot;
using BoSSS.Application.BoSSSpad;
using BoSSS.Application.XNSE_Solver;
using static BoSSS.Application.BoSSSpad.BoSSSshell;
using BoSSS.Foundation.Grid.RefElements;
using BoSSS.Platform.LinAlg;
using BoSSS.Solution.NSECommon;
using BoSSS.Application.XNSEC;
Init();
BoSSSshell.WorkflowMgm.Init("HeatedCavity_ConvergenceStudy");
Project name is set to 'HeatedCavity_ConvergenceStudy'. Default Execution queue is chosen for the database. Opening existing database '\\fdygitrunner\ValidationTests\databases\HeatedCavity_ConvergenceStudy'.
static var myBatch = BoSSSshell.GetDefaultQueue();
static var myDb = BoSSSshell.WorkflowMgm.DefaultDatabase;
BoSSSshell.WorkflowMgm.DefaultDatabase = myDb;
int[] Resolutions = new int[]{ 1,2,3,4,5,6};
int[] DGdegree = new int[]{ 1,2,3,4};
int[] nCells = Resolutions.Select(r => (int)(Math.Pow(2,r+1))).ToArray();
double[] Rayleighs = new double[] {1e2};
public static class GridFactory {
public static double[] GetXNodes(int Res) {
var xNodes = GenericBlas.SinLinSpacing(-0.5, 0.5, 0, Res + 1);
return xNodes;
}
static double[] GetYNodes(int Res) {
double[] yNodes = GenericBlas.SinLinSpacing(-0.5, 0.5,0, Res + 1);
return yNodes;
}
public static Grid2D GenerateGrid(int Res) {
var xNodes = GetXNodes(Res);
var yNodes = GetYNodes(Res);
var grd = Grid2D.Cartesian2DGrid(xNodes, yNodes);
grd.EdgeTagNames.Add(1, "NoSlipNeumann");
grd.EdgeTagNames.Add(2, "wall_tempfixed_left");
grd.EdgeTagNames.Add(3, "wall_tempfixed_right");
grd.DefineEdgeTags( delegate (double[] X) {
double x = X[0];
double y = X[1];
//Edge tags
//1: Adiabatic no slip wall
//2: Temperature fixed no slip wall
//right cold wall
if (Math.Abs(x - 0.5) < 1e-8)
return 3;
//bottom adiabatic Wall
if (Math.Abs(y - 0.5 ) < 1e-8)
return 1;
// left hot wall
if (Math.Abs(x + 0.5) < 1e-8)
return 2;
//top adiabatic Wall
if (Math.Abs(y + 0.5 ) < 1e-8)
return 1;
else throw new ArgumentOutOfRangeException();
});
myDb.SaveGrid(ref grd);
return grd;
}
}
public static class BoundaryValueFactory {
public static string GetPrefixCode(double Th, double Tc, double Froude) {
using(var stw = new System.IO.StringWriter()) {
stw.WriteLine("static class BoundaryValues {");
stw.WriteLine(" static public double VelX(double[] X) {");
stw.WriteLine(" return 0.0;");
stw.WriteLine(" }");
stw.WriteLine(" static public double VelY(double[] X) {");
stw.WriteLine(" return 0.0;");
stw.WriteLine(" }");
stw.WriteLine(" static public double TemperatureHot(double[] X) {");
stw.WriteLine(" return 1.6;");
stw.WriteLine(" }");
stw.WriteLine(" static public double TemperatureCold(double[] X) {");
stw.WriteLine(" return 0.4;");
stw.WriteLine(" }");
stw.WriteLine(" static public double One(double[] X) {");
stw.WriteLine(" return 1.0;");
stw.WriteLine(" }");
stw.WriteLine(" static public double Zero(double[] X) {");
stw.WriteLine(" return 0.0;");
stw.WriteLine(" }");
stw.WriteLine(" static public double InitialPressure(double[] X) { ");
stw.WriteLine(" return (-1)* X[1] / ("+Froude * Froude +") ;");
stw.WriteLine(" }");
stw.WriteLine("}");
return stw.ToString();
}
}
static public Formula Get_VelX(double Th, double Tc , double Froude) {
return new Formula("BoundaryValues.VelX", AdditionalPrefixCode:GetPrefixCode(Th,Tc,Froude));
}
static public Formula Get_VelY(double Th, double Tc, double Froude){
return new Formula("BoundaryValues.VelY", AdditionalPrefixCode:GetPrefixCode(Th,Tc,Froude));
}
static public Formula Get_TemperatureHot(double Th, double Tc, double Froude){
return new Formula("BoundaryValues.TemperatureHot", AdditionalPrefixCode:GetPrefixCode(Th,Tc,Froude));
}
static public Formula Get_TemperatureCold(double Th, double Tc, double Froude){
return new Formula("BoundaryValues.TemperatureCold", AdditionalPrefixCode:GetPrefixCode(Th,Tc,Froude));
}
static public Formula Get_One(double Th, double Tc, double Froude){
return new Formula("BoundaryValues.One", AdditionalPrefixCode:GetPrefixCode(Th,Tc,Froude));
}
static public Formula Get_Zero(double Th, double Tc, double Froude){
return new Formula("BoundaryValues.Zero", AdditionalPrefixCode:GetPrefixCode(Th,Tc,Froude));
}
static public Formula Get_InitialPressure(double Th, double Tc, double Froude){
return new Formula("BoundaryValues.InitialPressure", AdditionalPrefixCode:GetPrefixCode(Th,Tc,Froude));
}
}
var controls = new List<XNSEC_Control>();
var controls = new List<BoSSS.Application.XNSEC.XNSEC_Control>();
double Th = 1.6; double Tc = 0.4;
foreach(double Ra in Rayleighs){
foreach(int dg in DGdegree){
foreach(int Res in Resolutions) {
var C = new BoSSS.Application.XNSEC.XNSEC_Control();
C.SetDGdegree(dg);
var nCells = (int) Math.Pow(2,Res+1);
C.SetGrid(GridFactory.GenerateGrid(nCells));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("Res", Res));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("Dgdegree", dg));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("Rayleigh", Ra));
C.SessionName = "NaturalConvection_k" + Res + "_DG" + dg+ "_Ra"+Ra;
C.savetodb = true;
C.EnableMassFractions = false;
C.NumberOfChemicalSpecies = 1;
C.ChemicalReactionActive = false;
C.MatParamsMode = MaterialParamsMode.Sutherland;
C.physicsMode = PhysicsMode.Combustion;
C.TimesteppingMode = AppControl._TimesteppingMode.Steady;
// C.NonLinearSolver.SolverCode = NonLinearSolverCode.Newton;
C.LinearSolver = LinearSolverCode.direct_pardiso.GetConfig();
C.NonLinearSolver.ConvergenceCriterion = 0.0; // as accurate as possible, until no further reduction can be achieved.
C.NonLinearSolver.verbose = true;
C.NonLinearSolver.MaxSolverIterations = 500;
C.PenaltyViscMomentum = 1.0 * 1;
C.PenaltyHeatConduction = 1.0 * 1;
C.PhysicalParameters.IncludeConvection = true;
C.UseSelfMadeTemporalOperator = false;
C.timeDerivativeEnergyp0_OK = false;
C.timeDerivativeConti_OK = false;
C.EdgeTagsNusselt = new string[] { "wall_tempfixed_left", "wall_tempfixed_right", "NoSlipNeumann" };
C.Rayleigh = Ra;
C.Reynolds = Math.Sqrt(Ra);
C.Prandtl = 0.71;
double Fr =Math.Sqrt(2 * C.Prandtl * (1.6 - 0.4) / (1.6 + 0.4));
C.Froude = Fr;
C.HeatCapacityRatio = 1.4;
C.T_ref_Sutherland = 600;
C.ThermodynamicPressureMode = ThermodynamicPressureMode.MassDetermined; // Because its a closed system, i.e. p0 = p0(time)
C.PhysicalParameters.IncludeConvection = true;
C.Timestepper_LevelSetHandling = BoSSS.Solution.XdgTimestepping.LevelSetHandling.None;
if(Ra > 1e5){ // For Rayleigh numbers greater than 1e5 the newton-dogleg algorithm doesnt find a solution within ~ 70 iterations => Use homotopy
C.HomotopyVariable = XNSEC_Control.HomotopyVariableEnum.Reynolds;
C.homotopieAimedValue = Math.Sqrt(Ra);
C.StartingHomotopyValue = Math.Sqrt(1e5); // Suficiently easy to find solution
C.HomotopyApproach = XNSEC_Control.HomotopyType.Automatic;
}
C.AddBoundaryValue("NoSlipNeumann", VariableNames.VelocityX,BoundaryValueFactory.Get_VelX(Th, Tc,Fr));
C.AddBoundaryValue("NoSlipNeumann", VariableNames.VelocityY,BoundaryValueFactory.Get_VelY(Th, Tc,Fr));
C.AddBoundaryValue("wall_tempfixed_left", VariableNames.Temperature,BoundaryValueFactory.Get_TemperatureHot(Th, Tc,Fr));
C.AddBoundaryValue("wall_tempfixed_right", VariableNames.Temperature, BoundaryValueFactory.Get_TemperatureCold(Th, Tc,Fr));
C.AddBoundaryValue("wall_tempfixed_left", VariableNames.MassFraction0, BoundaryValueFactory.Get_One(Th, Tc,Fr));
C.AddBoundaryValue("wall_tempfixed_right", VariableNames.MassFraction0, BoundaryValueFactory.Get_One(Th, Tc,Fr));
C.AddInitialValue(VariableNames.VelocityX, BoundaryValueFactory.Get_Zero(Th, Tc,Fr));
C.AddInitialValue(VariableNames.VelocityY,BoundaryValueFactory.Get_Zero(Th, Tc,Fr));
C.AddInitialValue(VariableNames.Pressure,BoundaryValueFactory.Get_InitialPressure(Th, Tc,Fr));
C.AddInitialValue(VariableNames.Temperature,BoundaryValueFactory.Get_One(Th, Tc,Fr));
C.AddInitialValue(VariableNames.MassFraction0, BoundaryValueFactory.Get_One(Th, Tc,Fr));
C.AddInitialValue(VariableNames.ThermodynamicPressure,BoundaryValueFactory.Get_One(Th, Tc,Fr));
controls.Add(C);
}
}
}
Grid Edge Tags changed. An equivalent grid (e1ec87ad-05cc-448b-b216-5a280495f037) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (0c726ae3-82b5-471f-9035-e7dfe8c5e014) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (12a65d7d-5e56-4da0-be7c-c28fadb9d5e0) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (34e6143a-024d-475d-83a2-f0e0aa809374) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (ba2c1ac0-88d3-40dc-99db-4accbbe4149f) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (dfb9c954-3564-4276-9955-b6b217a6470f) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (e1ec87ad-05cc-448b-b216-5a280495f037) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (0c726ae3-82b5-471f-9035-e7dfe8c5e014) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (12a65d7d-5e56-4da0-be7c-c28fadb9d5e0) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (34e6143a-024d-475d-83a2-f0e0aa809374) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (ba2c1ac0-88d3-40dc-99db-4accbbe4149f) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (dfb9c954-3564-4276-9955-b6b217a6470f) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (e1ec87ad-05cc-448b-b216-5a280495f037) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (0c726ae3-82b5-471f-9035-e7dfe8c5e014) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (12a65d7d-5e56-4da0-be7c-c28fadb9d5e0) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (34e6143a-024d-475d-83a2-f0e0aa809374) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (ba2c1ac0-88d3-40dc-99db-4accbbe4149f) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (dfb9c954-3564-4276-9955-b6b217a6470f) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (e1ec87ad-05cc-448b-b216-5a280495f037) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (0c726ae3-82b5-471f-9035-e7dfe8c5e014) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (12a65d7d-5e56-4da0-be7c-c28fadb9d5e0) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (34e6143a-024d-475d-83a2-f0e0aa809374) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (ba2c1ac0-88d3-40dc-99db-4accbbe4149f) is already present in the database -- the grid will not be saved. Grid Edge Tags changed. An equivalent grid (dfb9c954-3564-4276-9955-b6b217a6470f) is already present in the database -- the grid will not be saved.
BoSSSshell.ExecutionQueues.ForEach(q => Console.WriteLine(q))
MS HPC client MSHPC-Gitrunner-HighPrio @DC2, @\\fdygitrunner\BoSSStests MS HPC client MSHPC-Gitrunner-DefaultTest @DC2, @\\fdygitrunner\BoSSStests MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy MS HPC client MSHPC-AllNodes-test @DC2, @\\fdygitrunner\BoSSStests MS HPC client MSHPC-FastNodes @DC2, @\\fdygitrunner\ValidationTests\deploy
var myBatch = BoSSSshell.GetDefaultQueue();
//myBatch.AllowedDatabasesPaths.Add(new AllowedDatabasesPair(myDb.Path,""));
Type solver = typeof(BoSSS.Application.XNSEC.XNSEC);
foreach(var c in controls) {
string jobName = c.SessionName;
var oneJob = new Job(jobName, solver);
int noOfProcs = Convert.ToInt32(c.Paramstudy_CaseIdentification[0].Item2) > 2 ? 4:1;
noOfProcs = Convert.ToInt32(c.Paramstudy_CaseIdentification[0].Item2) > 4 ? 8:noOfProcs;
oneJob.NumberOfMPIProcs = noOfProcs;
oneJob.SetControlObject(c);
oneJob.Activate(myBatch);
}
Deployments so far (1): (Job token: 802876, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104039.555832' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k1_DG1_Ra100 10/30/2023 10:41:01 52522c54..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802878, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104053.126540' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k2_DG1_Ra100 10/30/2023 10:41:24 a50c041d..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802881, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104116.945485' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k3_DG1_Ra100 10/30/2023 10:41:51 6cc1f4a0..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802883, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104137.950487' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k4_DG1_Ra100 10/30/2023 10:42:09 8ddf80a3..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802886, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104159.068721' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k5_DG1_Ra100 10/30/2023 10:42:33 9ec0590d..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802888, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104224.993994' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k6_DG1_Ra100 10/30/2023 10:42:55 a4c37540..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802889, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104246.258220' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k1_DG2_Ra100 10/30/2023 10:43:23 00ff0a4a..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802893, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104315.131960' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k2_DG2_Ra100 10/30/2023 10:43:52 7283b4b7..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802896, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104351.458493' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k3_DG2_Ra100 10/30/2023 10:44:26 43de2912..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802901, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104422.784739' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k4_DG2_Ra100 10/30/2023 10:45:00 dd6e0af7..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802905, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104457.221838' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k5_DG2_Ra100 10/30/2023 10:45:31 e2f25c6b..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802910, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104535.327638' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k6_DG2_Ra100 10/30/2023 10:46:14 ea1038d9..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802914, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104614.618197' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k1_DG3_Ra100 10/30/2023 10:46:51 41ea35be..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802918, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104654.220617' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k2_DG3_Ra100 10/30/2023 10:47:31 1df4c4cb..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802922, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104735.441152' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k3_DG3_Ra100 10/30/2023 10:48:16 46cf649d..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802927, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104817.567586' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k4_DG3_Ra100 10/30/2023 10:49:04 78fa7115..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802931, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104914.795705' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k5_DG3_Ra100 10/30/2023 10:49:54 e5a511fb..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802935, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_104959.804501' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k6_DG3_Ra100 10/30/2023 10:50:36 d2399a05..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802940, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_105041.139607' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k1_DG4_Ra100 10/30/2023 10:51:12 7a209b3f..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802944, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_105128.673166' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k2_DG4_Ra100 10/30/2023 10:52:04 e1382850..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802948, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_105218.020217' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k3_DG4_Ra100 10/30/2023 10:53:01 23b9a027..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802950, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_105311.221615' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k4_DG4_Ra100 10/30/2023 10:53:59 2910bd15..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802954, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_105413.304279' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k5_DG4_Ra100 10/30/2023 10:54:50 ee5b22e8..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (1): (Job token: 802957, FinishedSuccessful 'HeatedCavity_ConvergenceStudy-XNSEC2023Oct30_105508.198152' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 1 Info: Found successful session "HeatedCavity_ConvergenceStudy NaturalConvection_k6_DG4_Ra100 10/30/2023 10:55:41 302f0bb7..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful
// wait for all jobs to finish (up to 1 day, check every 2 minutes)
BoSSSshell.WorkflowMgm.BlockUntilAllJobsTerminate(TimeOutSeconds:(3600*24*1), PollingIntervallSeconds:(60*2));
All jobs finished.
// detect failed Jobs in the job management
var suspects = BoSSSshell.WorkflowMgm.AllJobs.Select(kv => kv.Value)
.Where(job => job.LatestSession.Tags.Contains(SessionInfo.NOT_TERMINATED_TAG)
|| job.LatestSession.Tags.Contains(SessionInfo.SOLVER_ERROR)).ToArray();
suspects
NUnit.Framework.Assert.IsTrue(suspects.Count() <= 0, $"{suspects.Count()} Failed Jobs of {BoSSSshell.WorkflowMgm.AllJobs.Count()} in total.");