Coder Social home page Coder Social logo

neilbalch / simvascular-pythondemos Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 130 KB

Example scripts for the Python scripting API of the SimVascular FSI simulation tool wrote during Summer 2019 and Summer 2020 internships @ Stanford CBCL.

Python 100.00%
python simvascular cpp fsi fea python-api

simvascular-pythondemos's Introduction

SimVascular-pythondemos

The scripts in this repository are demos and examples for how to use the SimVascular Python extensibility API, which allows the end user to write scripts to automate repetitive tasks within the GUI as well as implement new functionality that isn't yet present in the GUI.

Repository Structure

  • Testing Framework/*: Custom unit-testing framework for the SimVascular Python API.
    • Most run from SV CLI (sv --python -- <file path>), but example_module.py from standard Python terminal.
  • angle_between_contours.py: Tool to calculate the angle of incidence between two contours on a single segmentation.
    • Run in SV GUI
  • contour_area.py: Tool to calculate statistics regarding the area of contours on a segmentation.
    • Run in SV GUI
  • contour_intersection.py: Tool to determine whether or not any contours in a segmentation intersect each other, an undesirable situation.
    • Run in SV GUI
  • contour_radii.py: Tool to calculate statistics regarding the radius of a segmentation.
    • Run in SV GUI
  • contour_to_lofted_model.py: Demo for how to create a simple Y lofted solid intersection from scratch. From paths to contours to lofted surface to solid to blended solids. (CURRENTLY SEMI-UNFINISHED)
    • Run in SV CLI (sv --python -- <file path>)
  • geom_check_broken_surface.py: Demo for how to check lofted surfaces for being open surfaces, an undesirable trait.
    • Run in SV CLI (sv --python -- <file path>)
  • geom_stats_demo.py: Demo of the various features offered by the Geom.xyz API set.
    • Run in SV CLI (sv --python -- <file path>)
  • mesh_stats_demo.py: Demo of the various features offered bt the meshing API set.
    • Run in SV CLI (sv --python -- <file path>)
  • path_length.py: Tool to calculate the total arc length along a centerline path.
    • Run in SV GUI
  • writeToCSV.py: Debug tool to aid in graphing bad data.
    • Run in independent Python terminal

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.