-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #288 from RemDelaporteMathurin/dev
Release v0.6
- Loading branch information
Showing
29 changed files
with
3,165 additions
and
932 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Test demos | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
container: quay.io/fenicsproject/stable:latest | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Runs a single command using the runners shell | ||
- name: Run the notebooks | ||
run: | | ||
jupyter-nbconvert --to python demos/demo_multi_materials.ipynb | ||
mkdir outputs | ||
python3 -m demos.demo_multi_materials | ||
jupyter-nbconvert --to python demos/demo_meshes.ipynb | ||
python3 -m demos.demo_meshes | ||
jupyter-nbconvert --to python demos/demo_derived_quantities.ipynb | ||
python3 -m demos.demo_derived_quantities | ||
jupyter-nbconvert --to python demos/demo_Ogorodnikova.ipynb | ||
python3 -m demos.demo_Ogorodnikova | ||
jupyter-nbconvert --to python demos/demo_coupled_heat_transfer.ipynb | ||
python3 -m demos.demo_coupled_heat_transfer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
from . import helpers | ||
from .helpers import find_material_from_id, update_expressions, help_key, \ | ||
parameters_helper | ||
|
||
from . import meshing | ||
from . import functionspaces_and_functions | ||
from . import initialising | ||
from . import formulations | ||
from .meshing import generate_mesh_from_vertices, read_subdomains_from_xdmf, \ | ||
mesh_and_refine, subdomains_1D, check_borders | ||
from .initialising import read_from_xdmf, check_no_duplicates | ||
from .formulations import formulation, formulation_extrinsic_traps, \ | ||
define_variational_problem_heat_transfers | ||
|
||
from . import boundary_conditions | ||
from . import solving | ||
from .boundary_conditions import define_dirichlet_bcs_T, apply_fluxes, \ | ||
BoundaryConditionTheta, BoundaryConditionRecomb, \ | ||
BoundaryConditionSolubility, apply_boundary_conditions | ||
from .solving import solve_it, solve_once, adaptive_stepsize | ||
|
||
from . import export | ||
from . import post_processing | ||
from .export import write_to_csv, export_txt, export_profiles, \ | ||
define_xdmf_files, export_xdmf, treat_value, export_parameters | ||
from .post_processing import run_post_processing, compute_error, \ | ||
create_properties, calculate_maximum_volume, calculate_minimum_volume, \ | ||
header_derived_quantities, derived_quantities, \ | ||
check_keys_derived_quantities | ||
|
||
from . import generic_simulation | ||
from .generic_simulation import Simulation, run | ||
|
||
import sympy as sp | ||
x, y, z, t = sp.symbols('x[0] x[1] x[2] t') | ||
R = 8.314 # Gas constant | ||
k_B = 8.617e-5 # Boltzmann constant | ||
R = 8.314462618 # Gas constant J.mol-1.K-1 | ||
k_B = 8.6173303e-5 # Boltzmann constant eV.K-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.