Skip to content

Commit

Permalink
Docker support added
Browse files Browse the repository at this point in the history
  • Loading branch information
WildSmilodon committed Feb 4, 2025
1 parent 6983ef0 commit 6c25f95
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 4 deletions.
43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Use the latest LTS version of Ubuntu as the base image
FROM ubuntu:22.04

# Set environment variables to prevent prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive

# Update package list and install necessary packages
RUN apt-get update && apt-get install -y \
gfortran \
mpich \
libblas-dev \
wget \
git \
make \
vim \
unzip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# Set a working directory inside the container
WORKDIR /workspace

# Create a bin directory
RUN mkdir -p /workspace/bin
RUN echo 'export PATH="$PATH:/workspace/bin"' >> /root/.bashrc

# Download the specified file
RUN wget https://www.ssisc.org/lis/dl/lis-2.1.6.zip

# Unzip the downloaded file
RUN unzip lis-2.1.6.zip && rm lis-2.1.6.zip

# Install LIS library
RUN cd lis-2.1.6 && ./configure --enable-mpi --enable-f90 && make && make install

# Download Andromeda
RUN git clone https://github.com/WildSmilodon/Andromeda.git

# Compile Andromeda
RUN cd Andromeda/src && make
RUN cp Andromeda/bin/Andromeda bin/Andromeda-1.7-o

# Default command to start a bash shell
CMD ["/bin/bash"]
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ doi:10.1016/j.enganabound.2020.11.010

* Anna Šušnjara, Ožbej Verhnjak, Dragan Poljak, Mario Cvetković, Jure Ravnik (2022). Uncertainty quantification and sensitivity analysis of transcranial electric stimulation for 9-subdomain human head model. Engineering Analysis with Boundary Elements (2022), Vol 135, Pages 1-11, doi:10.1016/j.enganabound.2021.10.026

* Jure Ravnik, Mitja Štrakl, Jana Wedel, Paul Sterinamnn, Matjaž Hriberšek: Stokes Flow Induced Drag and Torque on Asbestos Particles can not be estimated by a Simplistic Ellipsoidal Approximation, to appear in 2022
* J. Ravnik, M. Štrakl, J. Wedel, M. Steinmann, M. Hriberšek. (2022). Stokes flow induced drag and torque on asbestos like fibres cannot be estimated by a simplistic ellipsoidal approximation WIT Transactions on Engineering Sciences, vol. 134, pp. 33 - 44; doi:10.2495/BE450031

* Štrakl, M., Hriberšek, M., Wedel, J., Steinmann, P., Ravnik, J. (2022). A Model for Translation and Rotation Resistance Tensors for Superellipsoidal Particles in Stokes Flow. J. Mar. Sci. Eng. 2022, 10, 369. doi:10.3390/jmse10030369

* J. Ravnik (2023). Analytical expressions for singular integrals arising from the 3D Laplace and Stokes kernels when using constant or linear triangular and quadrilateral boundary elements. Engineering Analysis with Boundary Elements, Volume 154, September 2023, Pages 47-53. doi:10.1016/j.enganabound.2023.02.057

### Uses LIS, blas and mpich libraries, compiles under gfortran

```
Expand Down Expand Up @@ -73,4 +75,20 @@ sudo apt-get install gmsh

### Getting help

* running Andromeda with ```-h``` command line argument displays help.
* running Andromeda with ```-h``` command line argument displays help.

### Docker

To make a docker image of Andromeda, using the Dockerfile provided, run

Build

```docker build -t andromeda .```

Run

```docker run -it andromeda```

To have access to a folder from inside docker

```docker run -v $(pwd)/my_files:/workspace/data -it andromeda```
3 changes: 1 addition & 2 deletions src/Andromeda.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ program Andromeda
!
parIDname='Andromeda'
parIDversion='1.7'
parIDdate='November 2024'
parIDdate='February 2025'
!
! Init parallel environment
!
Expand Down Expand Up @@ -56,7 +56,6 @@ program Andromeda
!
! Write mesh stats to log file
!

CALL PrintMeshStats()
!
! Read subdomain definitions from BIC file
Expand Down

0 comments on commit 6c25f95

Please sign in to comment.