spiceSharpFluidFlowSolver 11 - Code Exploration Simulation.cs too complex, use custom components
I find out eventually that trying to understand simulation classes is too much of a hassle because it uses autogenerated code and events. Dependencies are strewn throughout the namespaces and it gets really messy.
Finally it's probably better just to use the current flow and fluid flow analogy and create a pipe. And we shall use operating point calculations to find steady state of the pipe flow.
------------------ Useful Links ------------------------------------
Simulation.cs
https://github.com/SpiceSharp/SpiceSharp/blob/master/SpiceSharp/Simulations/Simulation.cs
TypeNotFoundException
https://github.com/SpiceSharp/SpiceSharp/blob/4d118c3458a1f4921ebab4c8ed9e9ec3f08dd5f9/SpiceSharp/Diagnostics/TypeNotFoundException.cs
use vscode within github
https://code.visualstudio.com/docs/editor/github
BehaviorGenerator.cs
https://github.com/SpiceSharp/SpiceSharp/blob/dace7bddaadf7ac22bc32abd2dc61b4d28afb13d/SpiceSharpGenerator/BehaviorGenerator.cs
nonlinearResistor
https://github.com/SpiceSharp/SpiceSharp/blob/master/SpiceSharpTest/Examples/CustomResistor/NonlinearResistor.cs
biasingBehaviour (for nonlinearResistor)
https://github.com/SpiceSharp/SpiceSharp/blob/master/SpiceSharpTest/Examples/CustomResistor/BiasingBehavior.cs
BaseParameter(for nonlinearResistor)
https://github.com/SpiceSharp/SpiceSharp/blob/master/SpiceSharpTest/Examples/CustomResistor/BaseParameters.cs
------------------ Video Sections --------------------------------
Chapters:
0:00 Intro and what is Biasing?
1:29 Attempt to create a custom simulation class for finding out what's going on under the hood
5:48 TypeNotFoundException missing
7:58 Properties does not exist in Simulation
11:10 running vscode within github
18:36 SpiceSharp Generator (autogenerated code in spicesharp)
20:13 Code is still pretty tightly coupled, i can't trace what's going on...
22:00 CustomResistor code (nonlinear resistors)
25:00 Operating Point Simulation (aka steady State)
26:50 nonlinearResistor class, a good template for pipe class
30:40 nonlinearResistorBehaviors Namespace, Y matrix and RHS vector defined here
32:22 Defining our Jacobian (Y matrix) and RHS vector
36:49 BaseParameters Class
40:09 Plans for the future... (converting a pipe into a type of nonlinear resistor)
---------------------[Playlists and Relevant Github Repositories]----------------------------------------------
Fluid Mechanics and Git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSmdAXc6J0XOSQ1b27qsMGt
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube
Petroleum Downstream Crash Course Playlist:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQ13CnhacUqEVk-tZlU4ISE
OpenFOAM for Windows 10 Beginner Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YRhBU4IqSaToQ8_X543YQsZ
https://github.com/theodoreOnzGit/laminar_BL_OpenFOAM
OpenFOAM Intermediate Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSpWX6mSOlwWEOKVa6i_iuE
https://github.com/theodoreOnzGit/thin_pipeflow_snappyHexMesh
OpenFOAM Heat Transfer Playlist and GitHub Repo
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR2Qa3Q9-AzNSF2J9Dc4_qT
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube
Convection Boundary Layer and git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR9pRBpp101Mkuds49vjQ63
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube
Turbulence Modelling Playlist
https://www.youtube.com/watch?v=F_Rxv9uMM3g&list=PLhPfNw4V4_YSnbYkJIBQ1kRN06Mmxe2Be
https://github.com/theodoreOnzGit/turbulenceModelling
OpenFOAM C++
https://github.com/theodoreOnzGit/C-_YouTube_OpenFoam
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT9OgqS7ZPlot_Ucxzc6pQJ
OpenFOAM Bash
https://github.com/theodoreOnzGit/Bash_OpenFOAM_YouTube
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT5zjBhfj5Hj4r4D5eXilcU
Basic Samba
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuWJLufBUpNplitReZX0fB
https://github.com/theodoreOnzGit/sambaVideos
Manjaro Tips and Tricks
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuyXBfJxAvzHJTl0UiWx3h
lammps and Discrete Element Modelling (DEM)
https://www.youtube.com/playlist?list=PLhPfNw4V4_YTdRlnLiu2OUXeTf5ZNVQ9E
playing with dotnet core
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQSTR8sqz0aRVzWlQBq3QUw
dotnet core github repo
https://github.com/theodoreOnzGit/dotnetCoreYoutube