Giter VIP home page Giter VIP logo

1d_cfd's Introduction

Copyright (2019) M. J. Colebank, M. U. Qureshi, and M. S. Olufsen

Intro:

This folder contains a C++ code for a single bifurcation model of pulse wave propagation. 
The example code uses 3-element Windkessel model that is reducible to a pure resistance 
condition. A generic inflow waveform is used to drive the system. A Makefile is used to 
link all the modules in the right order. Current version of the Makefile is updated to 
work on an iMac (Make sure to modify the compiler versions and/or path links specific to 
your machine).



Files Description

1. Makefile: Creates all executable files for sor06, arteries, and tools files.
Makefile is originally written for Mac compiler, but can be adapted for Windows. 
We recommend using Visual Studio for help making on Windows platforms. 
There might be many other options available as well.

2. run_1D: This file can be run AS IS and will call the Makefile and subsequent
algorithms needed. Change geometric and hemodynamic parameters in this file
for each new example.

C++ Files

3. sor06.h:  Header file containing global parameters
4. sor06.c:  Defines the network and calls the solver and the prints the data in vessel specific files.
5. arteries.h: Header file declaring the class Tube� and all its objects and functions, to be specified in arteries.C
6. arteries.c: Contains the main computational code, which uses Lax-Wenderoff scheme and a linear pressure-area relation. It also calls tools.C, tools.h (for root finding at bifurcations).
7. tools.c: Includes numerical algebraic tools for finding roots for the system of equations
8. tools.h: Used by tools.C and arteries.C

Input data

9. Qin_8192.dat: Generic inflow data created from InFlow.m

Other MATLAB files

10. run_1D.m: Plots the simulated data.
11. gnuplot.m: Rearrange the block matrix output
12. InFLow.m: Generates an inflow profile and saves it as Qin_8192.dat.
13. get_nominal_WK.m: Computes and non-dimensionalize vessel stiffness and the Windkessel parameters.

Output files

Code will generate a new data files with extension *.2d



1d_cfd's People

Contributors

mjcolebank avatar

Stargazers

四月是你的谎言 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.