Skip to content

Instantly share code, notes, and snippets.

View kookma's full-sized avatar

Mohammad Rahmani kookma

View GitHub Profile
@DanWBR
DanWBR / pfr.py
Last active April 25, 2024 19:36
Creates a DWSIM Simulation with a Plug-Flow Reactor + Kinetic Reaction using Python
import pythoncom
pythoncom.CoInitialize()
import clr
from System.IO import Directory, Path, File
from System import String, Environment
from System.Collections.Generic import Dictionary
dwsimpath = "C:\\Users\\Daniel\\AppData\\Local\\DWSIM8\\"
clr.AddReference(dwsimpath + "CapeOpen.dll")

TiddlyWiki: Getting Started with digital gardens, networked thinking and non-linear research

4 April 2021
Gavin Gamboa
@gavcloud

Overview

We will be diving into the Tiddlywiki framework (TW), which is an open-source tool great for compiling notes, research, bookmarking, and making non-linear and personalized knowledge maps. In my case I used it to build a virtual portfolio and bookcase for logging my reading notes and keeping track of my projects.

Prerequisites

@DanWBR
DanWBR / dtl_test2.py
Created November 6, 2020 20:02
Using DWSIM Standalone Thermodynamics Library in Python with Python.NET (High-Level API + Material Stream calls)
import clr, array
from System.IO import Directory, Path, File
from System import String, Double, Array, Reflection, Exception
dtlpath = "C:\\Users\\Daniel\\Source\\Repos\\DanWBR\\dwsim6\\DistPackages\\DTL\\"
clr.AddReference(dtlpath + "DWSIM.Thermodynamics.StandaloneLibrary.dll")
from DWSIM.Thermodynamics import Streams, PropertyPackages, CalculatorInterface
@DanWBR
DanWBR / dtl_test.py
Last active March 19, 2024 09:04
Using DWSIM Standalone Thermodynamics Library in Python with Python.NET (Low-Level Flash API + CAPE-OPEN-style calls)
import clr
from System.IO import Directory, Path, File
from System import String, Double, Array, Reflection, Exception
dtlpath = "C:\\Users\\Daniel\\Source\\Repos\\DanWBR\\dwsim6\\DistPackages\\DTL\\"
clr.AddReference(dtlpath + "DWSIM.Thermodynamics.StandaloneLibrary.dll")
from DWSIM.Thermodynamics import Streams, PropertyPackages, CalculatorInterface
@DanWBR
DanWBR / dwsim_automation.py
Last active June 6, 2024 13:55
Create, run and save a new DWSIM simulation in Python
import pythoncom
pythoncom.CoInitialize()
import clr
from System.IO import Directory, Path, File
from System import String, Environment
dwsimpath = "C:\\Users\\Daniel\\AppData\\Local\\DWSIM8\\"
@nmayorov
nmayorov / bvp_benchmark.ipynb
Last active November 17, 2023 19:59
BVP benchmarks with boundary condition tolerance check
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tahircpe
tahircpe / stream.py
Created July 22, 2018 17:12
Material stream class created using CoolProp Property Databank
# Material stream class
# need to add cooprop to get thermo_physical properties
import CoolProp as CP
from bisect import bisect_left
class material_stream:
'''
A material stream class that stores state variables of a material stream.
@n-s-k
n-s-k / OOP_F2003_Part_1.md
Last active May 10, 2024 13:46
Object-Oriented Programming in Fortran 2003 Part 1: Code Reusability
@palicko
palicko / sticky-footer.css
Created December 14, 2016 20:40
Sticky footer with flexbox (works in IE11)