diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..582d16d148d59b1566be0c99f4c3e247c96a8789 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +image: python:3.9 # Use a Python Docker image + +stages: # Define stages in the pipeline + - build + - deploy + +# Job to build documentation +build-docs: + stage: build + script: + - pip install git+https://git.rwth-aachen.de/Jan.Habscheid/bsc-electrolytemodels + - pip install sphinx + - pip install sphinx-rtd-theme + - pip install myst-parser + - sphinx-build docs/source docs/build # Build the documentation + artifacts: + paths: + - docs/build # Save the build output for later stages + expire_in: 12 month # Optional: Set how long to keep the artifacts (default: 30 days) + +# Job to deploy documentation to GitLab Pages +pages: + stage: deploy + script: + - mv docs/build public # Move the build output to the "public" directory + artifacts: + paths: + - public # Files in the "public" folder will be deployed to GitLab Pages + only: + - main # Only deploy if the changes are in the default branch \ No newline at end of file diff --git a/README.md b/README.md index d1edec130a8a34025c4614ccd33b99e21806687a..7e50176b267a3268a7e337da48d9e15c2615dec3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # Reproducibility Repository for Numerical Treatment of a Thermodynamically Consistent Electrolyte Model (B.Sc. Thesis - Jan Habscheid) +[](https://git.rwth-aachen.de/Jan.Habscheid/bsc-electrolytemodes/pipelines) +[](https://jan.habscheid.pages.rwth-aachen.de/bsc-electrolytemodes/) +[](https://git.rwth-aachen.de/jan.habscheid/bsc-electrolytemodes/-/tags) +[](https://git.rwth-aachen.de/Jan.Habscheid/bsc-electrolytemodes/-/blob/main/LICENSE?ref_type=heads) + ## Thesis This repository contains the code to reproduce the results presented in the bachelor thesis: Numerical Treatment of a Thermodynamically Consistent Electrolyte Model diff --git a/examples/Visualizations/VisElectrolyticDiode.py b/examples/Visualizations/VisElectrolyticDiode.py index 53f43f127c0f401d6a1ec7317c9bdf800830dd6a..2b1af9fa29329012a604bd5c4c0aed12bd274595 100644 --- a/examples/Visualizations/VisElectrolyticDiode.py +++ b/examples/Visualizations/VisElectrolyticDiode.py @@ -49,7 +49,7 @@ color_theme_concentration = 'rainbow' # cool, spring, PuBuGn, YlGnBu, GnBu color_theme_solvent = 'spring' color_theme_pressure = 'autumn' -fig, axs = plt.subplots(nrows=3, ncols=5, figsize=(30, 30)) +fig, axs = plt.subplots(nrows=3, ncols=5, figsize=(30, 30), sharex=True, sharey=True) labelsize = 30 titlesize = 25 legend_width = 8 @@ -102,11 +102,9 @@ for bias, (y_A, y_C, y_S, phi, p, x, y) in enumerate(zip(y_A_packed, y_C_packed, axs[bias,4].tick_params(axis='both', labelsize=labelsize) axs[bias,4].set_title(f'$p \in ({int(round(np.min(p),0))},{int(round(np.max(p), 0))})$', fontsize=titlesize) -# axs[0,0].set_title('$\\varphi [-]$', fontsize=labelsize) -# axs[0,1].set_title('$y_A [-]$', fontsize=labelsize) -# axs[0,2].set_title('$y_C [-]$', fontsize=labelsize) -# axs[0,3].set_title('$y_S [-]$', fontsize=labelsize) -# axs[0,4].set_title('$p [-]$', fontsize=labelsize) +for bias in range(5): + axs[2,bias].set_xticks([0, 0.01, 0.02]) + fig.tight_layout() fig.savefig('../Figures/ElectrolyticDiode.svg') fig.show()