From c8f6d072c48efa481ce9aa7dd25a949cb6694906 Mon Sep 17 00:00:00 2001 From: J Dark Date: Wed, 11 Oct 2023 10:55:24 -0400 Subject: [PATCH] wrong file --- .github/workflows/docker_ci.yml | 2 +- festim/material.py | 35 --------------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 festim/material.py diff --git a/.github/workflows/docker_ci.yml b/.github/workflows/docker_ci.yml index c94ff23e2..4d2a32711 100644 --- a/.github/workflows/docker_ci.yml +++ b/.github/workflows/docker_ci.yml @@ -18,7 +18,7 @@ jobs: python3 -m pytest test/ --cov festim --cov-report xml --cov-report term - name: Upload to codecov - shell: pwsh + shell: bash run: | curl -Os https://uploader.codecov.io/latest/linux/codecov chmod +x codecov diff --git a/festim/material.py b/festim/material.py deleted file mode 100644 index f68129d7b..000000000 --- a/festim/material.py +++ /dev/null @@ -1,35 +0,0 @@ -import ufl -from dolfinx import fem -import festim as F - - -class Material: - """ - Material class - """ - - def __init__(self, D_0=None, E_D=None, name=None) -> None: - """Inits Material - Args: - D_0 (float): the diffusion coefficient at 0 K - E_D (float): the activation energy for diffusion - name (str): the name of the material - """ - self.D_0 = D_0 - self.E_D = E_D - self.name = name - - def define_diffusion_coefficient(self, mesh, temperature): - """Defines the diffusion coefficient - Args: - temperature (dolfinx.fem.Constant): the temperature - Returns: - float: the diffusion coefficient - """ - - if isinstance(self.D_0, float): - self.D_0 = fem.Constant(mesh, self.D_0) - if isinstance(self.E_D, float): - self.E_D = fem.Constant(mesh, self.E_D) - - return self.D_0 * ufl.exp(-self.E_D / F.k_B / temperature)