Skip to content

Commit

Permalink
A lot of fixes!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
sap8b committed Jul 25, 2021
1 parent e3375b9 commit 84d7abd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
15 changes: 8 additions & 7 deletions DiffusionSimulators_2D_MatrixD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public void Solve(int n_time_steps, int output_interval)
if (BCs_Functions[1].TypeBC == ABoundaryCondition.neumann) { holdA1 = A[i][end_idx1, end_idx1]; A[i][end_idx1, end_idx1] = NeumannBCs_R_A[i]; }

RVector v1 = A[i].Dot(xold);
C_Ex.ReplaceRow(v1, i, start_idx2, end_idx1);
C_Ex.ReplaceRow(v1, i, start_idx2, nx_less1);

switch (BCs_Functions[2].TypeBC)
{
Expand Down Expand Up @@ -662,9 +662,9 @@ public void Solve(int n_time_steps, int output_interval)
C_Im2.ReplaceRow(CT, nrows - 1);
break;
case ABoundaryCondition.neumann:
CT = C_Im2.GetRowVector(nrows - 2);
CB = C_Im2.GetRowVector(nrows - 4);
C_Im2.ReplaceRow((CT - CB) / (2 * dy), nrows - 1);
CT = BCs_Functions[0].BoundaryFunction(t * dt, BCs_Functions[0].PositionVaries, BCs_Functions[0].PositionFixed);
CB = C_Im2.GetRowVector(nrows - 2);
C_Im2.ReplaceRow(CT * dy + CB, nrows - 1);
break;
}
switch (BCs_Functions[3].TypeBC)
Expand All @@ -674,9 +674,10 @@ public void Solve(int n_time_steps, int output_interval)
C_Im2.ReplaceRow(CB, 0);
break;
case ABoundaryCondition.neumann:
CB = C_Im2.GetRowVector(1);
CT = C_Im2.GetRowVector(3);
C_Im2.ReplaceRow((CT - CB) / (2 * dy), 0);
CT = C_Im2.GetRowVector(1);
CB = BCs_Functions[3].BoundaryFunction(t * dt, BCs_Functions[3].PositionVaries, BCs_Functions[3].PositionFixed);

C_Im2.ReplaceRow(CB * dy + CT, 0);
break;
}
// ===================
Expand Down
7 changes: 7 additions & 0 deletions log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,10 @@
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T18:57:33.5239776Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:04:18.6808208Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:04:33.6233402Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:29:48.6203585Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:29:57.9867293Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:30:28.4158722Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:38:04.7253426Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:45:08.1123785Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T19:55:46.775308Z","message_severity":"warning","code":"InvalidFileLink"}
{"message":"Invalid file link:(~/2D_Region.png).","source":"BuildCommand.BuildCore.Build Document.LinkPhaseHandlerWithIncremental.ConceptualDocumentProcessor.Save","file":"README.md","line":"0","date_time":"2021-07-25T20:15:11.3628824Z","message_severity":"warning","code":"InvalidFileLink"}

0 comments on commit 84d7abd

Please sign in to comment.