Skip to content

Commit

Permalink
Attempt to add test coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Mattheus-Moerman committed Apr 3, 2024
1 parent 1965f46 commit d6075a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
[![License: Apache 2.0](https://img.shields.io/badge/License-Apache-blue.svg)](https://github.com/COMODO-research/Comodo.jl/blob/main/LICENSE)
[![example workflow](https://github.com/COMODO-research/Comodo.jl/actions/workflows/test.yml/badge.svg)](https://github.com/COMODO-research/Comodo.jl/blob/main/.github/workflows/test.yml)
[![Doc](https://img.shields.io/badge/docs-dev-blue.svg)](https://comodo-research.github.io/Comodo.jl/dev/)
[![cov](https://github.com/COMODO-research/Comodo.jl/badges/coverage.svg)](https://github.com/COMODO-research/Comodo.jl/actions)
[![Join the chat at https://gitter.im/Comodo.jl](https://badges.gitter.im/Comodo.jl.svg)](https://app.gitter.im/#/room/#comodo:gitter.im?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![example workflow](https://github.com/COMODO-research/Comodo.jl/actions/workflows/test.yml/badge.svg)](https://github.com/COMODO-research/Comodo.jl/blob/main/.github/workflows/test.yml) [![Doc](https://img.shields.io/badge/docs-dev-blue.svg)](https://comodo-research.github.io/Comodo.jl/dev/) [![codecov](https://codecov.io/gh/Kevin-Mattheus-Moerman/COMODO/graph/badge.svg?token=QX8IPY6IP5)](https://codecov.io/gh/Kevin-Mattheus-Moerman/COMODO) [![Join the chat at https://gitter.im/Comodo.jl](https://badges.gitter.im/Comodo.jl.svg)](https://app.gitter.im/#/room/#comodo:gitter.im?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
![](assets/img/COMODO.png)
[![Mastodon](https://img.shields.io/badge/-MASTODON-%232B90D9?style=for-the-badge&logo=mastodon&logoColor=white)](https://fosstodon.org/@kevinmoerman)

# About Comodo
Comodo is a [Julia](https://julialang.org/) package **computational (bio)mechanics and computational design**, and offers functionality for geometry processing, meshing, finite element analysis, automated design, topology optimisation, and image-based modelling.
Expand All @@ -13,7 +9,7 @@ Loosely Comodo could stand for **Com**putational **Mo**delling for **D**esign **

Comodo.jl started out as a modern re-implementation in Julia of the MATLAB toolbox [GIBBON](https://github.com/gibbonCode/GIBBON). However, rather than literally porting each functional unit, it instead aims to follow a similar philosophy and cover similar but more advanced core functionaly.

## Installation
# Installation
```julia
pkg> add https://github.com/COMODO-research/Comodo.jl
```
Expand All @@ -24,11 +20,15 @@ The `examples` folder contains examples on the use of Comodo's functionality.
# Documentation
[Functional Documentation](https://comodo-research.github.io/Comodo.jl/dev/)

# Combinding with finite element analysis
# Combining with finite element analysis
For finite element analysis users are encouraged to combine the Comodo capabilities with the open source C++ solver [FEBio](https://febio.org/), e.g. based on the Julia wrapper [FEBio.jl](https://github.com/febiosoftware/FEBio.jl). In addition, users may want to explore the Julia packages [Gridap.jl](https://github.com/gridap/Gridap.jl) and [Ferrite.jl](https://github.com/Ferrite-FEM/Ferrite.jl).

# Testing
Under construction.
You can test Comodo by running
```julia
pkg> test Comodo
```
The source for the tests is [`runtests.jl`, found in the `test` folder](https://github.com/COMODO-research/Comodo.jl/blob/main/test/runtests.jl)

# Roadmap
A detailed roadmap is under construction.
Expand Down
6 changes: 4 additions & 2 deletions examples/demo_trisurfslice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Mn = GeometryBasics.Mesh(Vn,Fn)


## Visualization
cmap = :Spectral

s = 1.25*maximum([maximum(map(v-> v[i],V)) - minimum(map(v-> v[i],V)) for i 1:3])

R = rotation_between(n,[0.0,0.0,1.0])
Expand All @@ -64,9 +66,9 @@ hSlider = Slider(fig[2, 1], range = stepRange, startvalue = 0,linewidth=30)

# hp1 = mesh!(ax1,GeometryBasics.Mesh(V,F),color=:white, shading = FastShading, transparency=true)
hp2 = wireframe!(ax1,MG, linewidth=5, color=:red)
hp3 = poly!(ax1,Mn, color=CnV, strokewidth=1, strokecolor=:black, shading = FastShading, transparency=false, colorrange = (-2,2),colormap=:Spectral)
hp3 = poly!(ax1,Mn, color=CnV, strokewidth=1, strokecolor=:black, shading = FastShading, transparency=false, colorrange = (-2.5,2.5),colormap=cmap,levels = [-2.5,-1,1,2.5])
# hp3 = normalplot(ax1,Mn)
hp4 = Colorbar(fig[1,2],hp3)
hp4 = Colorbar(fig[1,2],hp3,ticks=[-2,-1,1,2])

on(hSlider.value) do stepIndex
pp = p + stepIndex*n
Expand Down

0 comments on commit d6075a4

Please sign in to comment.