0.1.0 • Published 2 years ago

@youwol/vinci v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Vinci.js

Vinci is a 2D displacement discontinuity boundary element method based on Crouch and Starfield, 1983, Boundary element methods in solid mechanics.

The code, written in TypeScript, is extremely simple to read, understand and is very short. It allows easy extensions if necessary such as

  • crack propagation
  • half-space
  • heterogeneous friction and cohesion
  • material heterogeneity
  • ...

Documentation

Read online.

Minimal example

import { Fault, Segment, Model, BC, Solution } from '@youwol/vinci'

const fault = new Fault([0,0, 1,1]) // one segment from (0,0) to (1,1)
fault.burgers = [0,1] // imposed displacement

const model = new Model()
model.addFault(fault)

// Post process
const sol = new Solution(model)
const stresses = sol.stress( new Array(100).fill(0).map( _ => Math.random()*3) ) )

0.1.0

2 years ago