This notebook was added later, to produce the values used for Fig. 11 in https://doi.org/10.1063/5.0139000
#r "BoSSSpad.dll"
// #r "..\..\src\L4-application\BoSSSpad\bin\Release\net5.0\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.Application.XNSE_Solver.PhysicalBasedTestcases.PrintingNip;
Init();
Only if the output directories were previously created via Part0_PrintingNip_Setup
output is stored to the subdirectories.
Otherwise, datatables are stored directly to the working directory and plots displayed in the notebook.
The plots are not adjusted to look "nice" in the notebook.
This is not part of the ValidationTestRunner
.
static bool GenerateOutput = Directory.Exists(@"./PrintingNip") && Directory.Exists(@"./PrintingNip/Figures") && Directory.Exists(@"./PrintingNip/Files") && Directory.Exists(@"./PrintingNip/Output");
string ProjectName4Correlation = "PrintingNip_Part1";
string ProjectName = "PrintingNip_Part4";
BoSSSshell.WorkflowMgm.Init(ProjectName4Correlation);
static var myDb4Correlation = BoSSSshell.OpenDatabase(BoSSSshell.WorkflowMgm.DefaultDatabase.Path);
Console.WriteLine("Initializing : " + myDb4Correlation.Path); // we need to init the static var! otherwise we end up with a reference to the wrong database!
Project name is set to 'PrintingNip_Part1'. Default Execution queue is chosen for the database. Opening existing database '\\fdygitrunner\ValidationTests\databases\PrintingNip_Part1'. Initializing : \\fdygitrunner\ValidationTests\databases\PrintingNip_Part1
BoSSSshell.WorkflowMgm.Init(ProjectName);
static var myDb = BoSSSshell.OpenDatabase(BoSSSshell.WorkflowMgm.DefaultDatabase.Path);
Console.WriteLine("Initializing : " + myDb.Path);
Project name is set to 'PrintingNip_Part4'. Default Execution queue is chosen for the database. Opening existing database '\\fdygitrunner\ValidationTests\databases\PrintingNip_Part4'. Initializing : \\fdygitrunner\ValidationTests\databases\PrintingNip_Part4
static var myBatch = BoSSSshell.GetDefaultQueue();
BoSSSshell.WorkflowMgm.SetNameBasedSessionJobControlCorrelation();
double H0 = 1e-5;
double V0 = 1.0;
double P0 = 1e6;
var sessions = myDb4Correlation.Sessions.Where(s => s.ProjectName == "PrintingNip_Part1").ToArray();
var sV = sessions.Single(s => Convert.ToDouble(s.KeysAndQueries["id:delta"]).ApproxEqual(H0) & Convert.ToDouble(s.KeysAndQueries["id:P_Diff"]).ApproxEqual(0.0) & Convert.ToDouble(s.KeysAndQueries["id:V_Wall"]).ApproxEqual(V0));
var sP = sessions.Single(s => Convert.ToDouble(s.KeysAndQueries["id:delta"]).ApproxEqual(H0) & Convert.ToDouble(s.KeysAndQueries["id:P_Diff"]).ApproxEqual(P0) & Convert.ToDouble(s.KeysAndQueries["id:V_Wall"]).ApproxEqual(0.0));
Function to create the velocity profile along the symmetry axis
using MathNet.Numerics.Interpolation;
static public CubicSpline ConstructVelocitySpline(ISessionInfo si) {
DGField VelocityX = si.Timesteps.Last().Fields.Single(f => f.Identification == "VelocityX");
var grd = (GridData)VelocityX.GridDat;
EdgeMask em = new EdgeMask(grd, X => Math.Abs(X[1]) < 1e-12); // symmetry axis
var Spline = Postprocessing.SplineOnEdge(em, VelocityX, 0, out double lB, out double uB);
return Spline;
}
Evaluate the profile for both simulations and superpose
var SplineV = ConstructVelocitySpline(sV);
var SplineP = ConstructVelocitySpline(sP);
Func<double, double, double, double, double> VelocityFunc = (x, h, v, p) => v/V0 * SplineV.Interpolate(x * Math.Sqrt(H0) / Math.Sqrt(h)) + (p * Math.Pow(h,1.5))/(P0 * Math.Pow(H0,1.5)) * SplineP.Interpolate(x * Math.Sqrt(H0) / Math.Sqrt(h));
Set Velocity to be zero at a certain x_stag and calculate the necessary pressure difference
Func<double, double, double, double> PressureFunc = (x_stag, h, v) => -v/V0 * SplineV.Interpolate(x_stag * Math.Sqrt(H0) / Math.Sqrt(h)) * (P0 * Math.Pow(H0,1.5)) / (Math.Pow(h,1.5) * SplineP.Interpolate(x_stag * Math.Sqrt(H0) / Math.Sqrt(h)));
double[] deltaS = new double[] {
0.000001 }; // micro-meter
double[] U = new double[] {
0.01, 0.03,
0.1, 0.3,
1.0, 3.0,
10.0 };
double[] x_m = new double[] {
0.001, 0.0025, 0.005,
0.01, 0.03, 0.05};
// always same
int Res = 10;
int DGdegree = 5;
double R = 0.1;
// set grid to be saved in database
GridFactory.myDb = myDb;
var controls = new List<XNSE_Control>();
foreach(double delta in deltaS) {
foreach(double V_wall in U) {
foreach(double x_stag in x_m) {
double p = PressureFunc(x_stag, delta, V_wall);
var C = new XNSE_Control();
C.DbPath = myDb.Path;
C.SetDGdegree(DGdegree);
C.SetGrid(GridFactory.GenerateGrid(Res,delta, R));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("Res", Res));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("delta", delta));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("Radius", R));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("V_Wall", V_wall));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("P_Diff", p));
C.Paramstudy_CaseIdentification.Add(new Tuple<string, object>("X_Stag", x_stag));
C.AddBoundaryValue("wall_walze", "VelocityX", BoundaryValueFactory.Get_VelX(delta, V_wall, R));
C.AddBoundaryValue("wall_walze", "VelocityY", BoundaryValueFactory.Get_VelY(delta, V_wall, R));
C.AddBoundaryValue("wall_substrat", "VelocityX", BoundaryValueFactory.Get_VelX(delta, V_wall, R));
C.AddBoundaryValue("wall_substrat", "VelocityY", BoundaryValueFactory.Get_VelY(delta, V_wall, R));
C.AddBoundaryValue("pressure_outlet_in", "Pressure", $"X => {p}", false);
C.AddBoundaryValue("pressure_outlet_out", "Pressure", $"X => {-p}", false);
C.TimesteppingMode = AppControl._TimesteppingMode.Steady;
C.PhysicalParameters.rho_A = 1026.4;
C.PhysicalParameters.mu_A = 0.0395;
C.PhysicalParameters.IncludeConvection = false;
C.Timestepper_LevelSetHandling = BoSSS.Solution.XdgTimestepping.LevelSetHandling.None;
C.SessionName = "J" + (20*Res*Res) + "_delta" + delta + "_V" + Math.Round(V_wall, 5) + "_xm" + x_stag;
controls.Add(C);
}
}
}
Grid Edge Tags changed. Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database Warning: grid seems not to be saved in a database
Console.WriteLine(controls.Count);
42
Workaround so we need to deploy the rather large executables only once!
controls.RunBatch(myBatch, true);
Using the DeployAssembliesOnce option, this is experimental and untested if all necessary files are copied in all cases! Deploying executables and additional files ... once copied 'win\amd64' runtime. Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829108, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_185903.273709' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.01_xm0.001 11/22/2023 18:59:24 66be2e36..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829109, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_185912.178845' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.01_xm0.0025 11/22/2023 18:59:24 d48ea2fb..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829110, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_185921.072321' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.01_xm0.005 11/22/2023 18:59:32 fa8833b2..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829111, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_185929.976797' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.01_xm0.01 11/22/2023 18:59:41 55bbdfa9..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829112, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_185944.824519' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.01_xm0.03 11/22/2023 18:59:56 92328ccb..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829113, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_185956.841544' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.01_xm0.05 11/22/2023 19:00:08 5c8c0e8d..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829114, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190008.851747' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.03_xm0.001 11/22/2023 19:00:20 9b7a22e2..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829115, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190018.268691' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.03_xm0.0025 11/22/2023 19:00:29 ded08c6f..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829116, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190031.889200' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.03_xm0.005 11/22/2023 19:00:43 001303aa..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829117, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190041.151424' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.03_xm0.01 11/22/2023 19:00:52 3e0a182c..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829118, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190055.827725' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.03_xm0.03 11/22/2023 19:01:07 da35080b..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829119, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190107.477735' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.03_xm0.05 11/22/2023 19:01:19 e1fffee8..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829120, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190116.905379' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.1_xm0.001 11/22/2023 19:01:28 bfaf2214..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829121, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190126.222184' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.1_xm0.0025 11/22/2023 19:01:43 e5a181ae..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829122, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190141.056020' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.1_xm0.005 11/22/2023 19:01:52 9ffe148e..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829123, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190156.148597' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.1_xm0.01 11/22/2023 19:02:07 97b2d140..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829124, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190205.678420' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.1_xm0.03 11/22/2023 19:02:17 8d7d4872..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829125, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190220.886572' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.1_xm0.05 11/22/2023 19:02:32 d3411fc4..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829126, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190230.239922' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.3_xm0.001 11/22/2023 19:02:41 d2c7d0fa..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829127, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190239.851928' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.3_xm0.0025 11/22/2023 19:02:57 fe54d2f1..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829128, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190256.738265' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.3_xm0.005 11/22/2023 19:03:08 757aecef..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829129, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190309.418954' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.3_xm0.01 11/22/2023 19:03:20 5350de72..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829130, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190322.987682' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.3_xm0.03 11/22/2023 19:03:34 90d5f04a..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829131, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190336.358025' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V0.3_xm0.05 11/22/2023 19:03:47 7740ad36..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829132, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190348.204261' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V1_xm0.001 11/22/2023 19:03:59 8d1d0835..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829133, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190401.819270' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V1_xm0.0025 11/22/2023 19:04:13 f017f4ce..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829134, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190412.468647' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V1_xm0.005 11/22/2023 19:04:24 bcdcc8eb..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829135, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190422.210039' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V1_xm0.01 11/22/2023 19:04:33 232a3dc6..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829136, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190433.014553' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V1_xm0.03 11/22/2023 19:04:49 fad38571..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829137, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190448.382319' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V1_xm0.05 11/22/2023 19:04:59 39bd89b0..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829138, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190501.247758' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V3_xm0.001 11/22/2023 19:05:12 1bc5b21e..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829139, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190515.414830' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V3_xm0.0025 11/22/2023 19:05:26 e59d6f7e..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829140, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190527.542984' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V3_xm0.005 11/22/2023 19:05:38 1c12257c..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829141, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190541.948682' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V3_xm0.01 11/22/2023 19:05:53 48bfe967..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829142, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190551.785611' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V3_xm0.03 11/22/2023 19:06:03 50426ae6..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829143, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190604.661598' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V3_xm0.05 11/22/2023 19:06:15 6cf8fa41..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829144, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190617.404788' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V10_xm0.001 11/22/2023 19:06:28 b2c0c3d2..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829145, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190630.079258' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V10_xm0.0025 11/22/2023 19:06:41 1eb3fbef..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829146, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190644.595720' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V10_xm0.005 11/22/2023 19:06:56 78d98d87..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829147, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190657.668684' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V10_xm0.01 11/22/2023 19:07:09 229f11d4..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829148, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190707.625897' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V10_xm0.03 11/22/2023 19:07:21 39fcbc4b..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful Deployments so far (2): (Job token: unknown, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver-binaries-2023Nov22_185848' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful), (Job token: 829149, FinishedSuccessful 'PrintingNip_Part4-XNSE_Solver2023Nov22_190724.201578' @ MS HPC client MSHPC-AllNodes @DC2, @\\fdygitrunner\ValidationTests\deploy, FinishedSuccessful); Success: 2 Info: Found successful session "PrintingNip_Part4 J2000_delta1E-06_V10_xm0.05 11/22/2023 19:07:36 4b1bb62f..." -- job is marked as successful, no further action. No submission, because job status is: FinishedSuccessful
BoSSSshell.WorkflowMgm.BlockUntilAllJobsTerminate(18000);
All jobs finished.
Assert that, all sessions are present and all finished successful
int count = BoSSSshell.wmg.Sessions.Count();
int success = BoSSSshell.wmg.Sessions.Where(s => s.SuccessfulTermination).Count();
if(count != controls.Count() || count != success){
throw new ApplicationException("Not all simulations calculated or finished successful!");
}
var sessions = myDb.Sessions.Where(s => s.ProjectName == ProjectName && s.SuccessfulTermination).ToArray();
sessions.Count()
BoSSSshell.WorkflowMgm.AdditionalSessionTableColums.Clear();
BoSSSshell.WorkflowMgm.AdditionalSessionTableColums.Add("dPdXatStagnationPoint", Postprocessing.dPdXatStagnationPoint);
DataTable tab;
if(GenerateOutput){
if(!File.Exists("./PrintingNip/Files/PrintingNip-Part4Export.csv")){
tab = sessions.GetSessionTable(BoSSSshell.WorkflowMgm.AdditionalSessionTableColums.Select(kv => new Tuple<string, Func<ISessionInfo, object>>(kv.Key, kv.Value)).ToArray());
tab.ToCSVFile("./PrintingNip/Files/PrintingNip-Part4Export.csv", ColSep: '%');
} else{
tab = TableExtensions.FromCSVFile("./PrintingNip/Files/PrintingNip-Part4Export.csv", ColSep: '%');
}
} else {
// in this case always recreate the datatable
tab = sessions.GetSessionTable(BoSSSshell.WorkflowMgm.AdditionalSessionTableColums.Select(kv => new Tuple<string, Func<ISessionInfo, object>>(kv.Key, kv.Value)).ToArray());
tab.ToCSVFile("./PrintingNip-Part4Export.csv", ColSep: '%');
}
Loaded Fields for J2000_delta1E-06_V10_xm0.05 Loaded Fields for J2000_delta1E-06_V10_xm0.03 Loaded Fields for J2000_delta1E-06_V10_xm0.01 Loaded Fields for J2000_delta1E-06_V10_xm0.005 Loaded Fields for J2000_delta1E-06_V10_xm0.0025 Loaded Fields for J2000_delta1E-06_V10_xm0.001 Loaded Fields for J2000_delta1E-06_V3_xm0.05 Loaded Fields for J2000_delta1E-06_V3_xm0.03 Loaded Fields for J2000_delta1E-06_V3_xm0.01 Loaded Fields for J2000_delta1E-06_V3_xm0.005 Loaded Fields for J2000_delta1E-06_V3_xm0.0025 Loaded Fields for J2000_delta1E-06_V3_xm0.001 Loaded Fields for J2000_delta1E-06_V1_xm0.05 Loaded Fields for J2000_delta1E-06_V1_xm0.03 Loaded Fields for J2000_delta1E-06_V1_xm0.01 Loaded Fields for J2000_delta1E-06_V1_xm0.005 Loaded Fields for J2000_delta1E-06_V1_xm0.0025 Loaded Fields for J2000_delta1E-06_V1_xm0.001 Loaded Fields for J2000_delta1E-06_V0.3_xm0.05 Loaded Fields for J2000_delta1E-06_V0.3_xm0.03 Loaded Fields for J2000_delta1E-06_V0.3_xm0.01 Loaded Fields for J2000_delta1E-06_V0.3_xm0.005 Loaded Fields for J2000_delta1E-06_V0.3_xm0.0025 Loaded Fields for J2000_delta1E-06_V0.3_xm0.001 Loaded Fields for J2000_delta1E-06_V0.1_xm0.05 Loaded Fields for J2000_delta1E-06_V0.1_xm0.01 Loaded Fields for J2000_delta1E-06_V0.1_xm0.005 Loaded Fields for J2000_delta1E-06_V0.1_xm0.03 Loaded Fields for J2000_delta1E-06_V0.1_xm0.0025 Loaded Fields for J2000_delta1E-06_V0.1_xm0.001 Loaded Fields for J2000_delta1E-06_V0.03_xm0.05 Loaded Fields for J2000_delta1E-06_V0.03_xm0.03 Loaded Fields for J2000_delta1E-06_V0.03_xm0.01 Loaded Fields for J2000_delta1E-06_V0.03_xm0.005 Loaded Fields for J2000_delta1E-06_V0.03_xm0.0025 Loaded Fields for J2000_delta1E-06_V0.03_xm0.001 Loaded Fields for J2000_delta1E-06_V0.01_xm0.05 Loaded Fields for J2000_delta1E-06_V0.01_xm0.03 Loaded Fields for J2000_delta1E-06_V0.01_xm0.01 Loaded Fields for J2000_delta1E-06_V0.01_xm0.001 Loaded Fields for J2000_delta1E-06_V0.01_xm0.005 Loaded Fields for J2000_delta1E-06_V0.01_xm0.0025
string[] Columns = new string[] {"dPdXatStagnationPoint"};
string[] Labels = new string[] {@"$\\\frac{\\\partial p}{\\\partial x}_{stag}$"};
string[] Units = new string[] {@"$\\\left[\\\frac{N}{m^3}\\right]$"}; // some escape character nonsense
var tab2export = tab.ExtractColumns(Columns.ToList().Prepend("id:V_Wall").Prepend("id:P_Diff").Prepend("id:Radius").Prepend("id:delta").Prepend("id:X_Stag").Prepend("SessionName").ToArray());
if(GenerateOutput){
tab2export.ToHTMLFile("PrintingNip-Part4.html", Path.GetFullPath("./PrintingNip/Files"));
tab2export.ToCSVFile("./PrintingNip/Files/PrintingNip-Part4.csv", ColSep: ';');
} else {
tab2export.ToHTMLFile("PrintingNip-Part4.html", Path.GetFullPath("./"));
tab2export.ToCSVFile("./PrintingNip-Part4.csv", ColSep: ';');
}