Skip to content

Commit

Permalink
Merge pull request #5 from JulianJohannes/main
Browse files Browse the repository at this point in the history
Second Merge
  • Loading branch information
tmaric authored May 20, 2023
2 parents bb5cd0c + aecce77 commit c5c5e5b
Show file tree
Hide file tree
Showing 184 changed files with 5,534 additions and 99,099 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Documentation
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: tmaric/openfoam-v2206_ubuntu-focal
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Update system
run: apt update -y && apt upgrade -y
- name: Install Latex and graphviz
run: |
apt install -y texlive texlive-latex-base \
texlive-fonts-recommended texlive-science texlive-xetex \
dvipng ghostscript cm-super \
graphviz
- name: Install doxygen and Build doc # version 1.9
run: |
wget https://www.doxygen.nl/files/doxygen-1.9.6.linux.bin.tar.gz
tar -xzf doxygen-1.9.6.linux.bin.tar.gz
export PATH="$(realpath doxygen-1.9.6/bin):$PATH"
ls /opt/OpenFOAM && . /opt/OpenFOAM/OpenFOAM-v2206/etc/bashrc && true
cd doc/Doxygen/
./update-macros.sh
./Allwmake
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: doc/Doxygen/html
deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ processor*/
# python
__pycache__

# Doxygen generated
doc/Doxygen/html
doc/Doxygen/latex
doc/Doxygen/man
doc/Doxygen/DTAGS
doc/Doxygen/Doxygen.warnings

# by JR
cases/tmp_save_calculated_cases/
cases/3D*_[0-9][0-9][0-9][0-9][0-9]_3D*/
cases/**/*.csv
Expand Down
14 changes: 14 additions & 0 deletions cases/2Dcontactline-periodic.parameter
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ values
quad
);

NEIGHBOURS
(
5
10
);

NARROWBAND
(
signChange
neighbours
distance
);

BC
(
zeroGradient
Expand All @@ -54,6 +67,7 @@ values
SuperBee
UMIST
vanAlbada
upwind
);

TANH_LIMIT
Expand Down
1 change: 1 addition & 0 deletions cases/2Dcontactline-periodic/Allrun_perturbed_parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rm -rf 0 && cp -r 0.org 0
find 0/ -name "*.template" -delete && \
touch "$(basename ${PWD}).foam" && \
set -o errexit
cp system/fvSchemes.non-orthogonal system/fvSchemes
blockMesh

leiaPerturbMesh
Expand Down
1 change: 1 addition & 0 deletions cases/2Dcontactline-periodic/Allrun_perturbed_serial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -o verbose
rm -rf 0 && cp -r 0.org 0
touch "$(basename ${PWD}).foam" && \
set -o errexit
cp system/fvSchemes.non-orthogonal system/fvSchemes
blockMesh

leiaPerturbMesh
Expand Down
3 changes: 2 additions & 1 deletion cases/2Dcontactline-periodic/system/aliasDict
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@

// ## Convection schemes

LinearUpwind linearUpwind grad(U);
LinearUpwind linearUpwind grad(U);
Gamma1 Gamma 1;
2 changes: 1 addition & 1 deletion cases/2Dcontactline-periodic/system/blockMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

n_cells 200;
n_cells 200;

scale (1 1 0.5);

Expand Down
8 changes: 4 additions & 4 deletions cases/2Dcontactline-periodic/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ stopAt endTime;

endTime 0.8;

Umax 1.2;
Umax 1.2;

CFL 0.5;
CFL 0.5;

// safty factor which is necessary to ensure maxCFL for some reason
CFLsafty 1.0;
CFLsafty 1.0;

// dummy float value. Will be replaced by Allrun
deltaX 0.0;
deltaX 1.0;

deltaT #eval "$CFL * $CFLsafty * $deltaX / $Umax";

Expand Down
8 changes: 4 additions & 4 deletions cases/2Dcontactline-periodic/system/controlDict.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ stopAt endTime;

endTime 0.8;

Umax 1.2;
Umax 1.2;

CFL @!CFL!@;
CFL @!CFL!@;

// safty factor which is necessary to ensure maxCFL for some reason
CFLsafty 1.0;
CFLsafty 1.0;

// dummy float value. Will be replaced by Allrun
deltaX 0.0;
deltaX 1.0;

deltaT #eval "$CFL * $CFLsafty * $deltaX / $Umax";

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#include "aliasDict"

ddtSchemes
{
default CrankNicolson 1;
}

gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
}

divSchemes
{
default none;
div(phi,psi) Gauss @!DIV!@;
}

laplacianSchemes
{
default Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
p;
}

// ************************************************************************* //
26 changes: 13 additions & 13 deletions cases/2Dcontactline-periodic/system/fvSolution
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ velocityModel
{
type periodic2D;
oscillation on;
tau 0.4;
tau 0.4;
}

levelSet
{
narrowBand
{
type signChange;
}
profile
{
type signedDistance;
}
narrowBand
{
type signChange;
}
profile
{
type signedDistance;
}


implicitSurface
Expand All @@ -79,11 +79,11 @@ levelSet
type noRedistancing;
}

SDPLSSource
{
SDPLSSource
{
type noSource;
discretization none;
}
}
}


Expand Down
38 changes: 19 additions & 19 deletions cases/2Dcontactline-periodic/system/fvSolution.template
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ velocityModel
{
type periodic2D;
oscillation on;
tau 0.4;
tau 0.4;
}

levelSet
{
narrowBand
{
type signChange;
}
profile
{
type @!PROFILE!@;
limit @!TANH_LIMIT!@;
}
narrowBand
{
type signChange;
}
profile
{
type @!PROFILE!@;
limit @!TANH_LIMIT!@;
}


implicitSurface
Expand All @@ -80,16 +80,16 @@ levelSet
type noRedistancing;
}

SDPLSSource
{
SDPLSSource
{
type @!SDPLS_SOURCE!@;
discretization @!SOURCE_SCHEME!@;
mollifier
{
type @!MOLLIFIER!@;
w1 0.05;
}
}
mollifier
{
type @!MOLLIFIER!@;
w1 0.05;
}
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rm -rf 0 && cp -r 0.org 0
find 0/ -name "*.template" -delete && \
touch "$(basename ${PWD}).foam" && \
set -o errexit
cp system/fvSchemes.non-orthogonal system/fvSchemes
blockMesh

leiaPerturbMesh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -o verbose
rm -rf 0 && cp -r 0.org 0
touch "$(basename ${PWD}).foam" && \
set -o errexit
cp system/fvSchemes.non-orthogonal system/fvSchemes
blockMesh

leiaPerturbMesh
Expand Down
3 changes: 2 additions & 1 deletion cases/2Dcontactline-vortex-oscillate/system/aliasDict
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@

// ## Convection schemes

LinearUpwind linearUpwind grad(U);
LinearUpwind linearUpwind grad(U);
Gamma1 Gamma 1;
2 changes: 1 addition & 1 deletion cases/2Dcontactline-vortex-oscillate/system/blockMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

n_cells 200;
n_cells 200;

scale (1 1 0.5);

Expand Down
8 changes: 4 additions & 4 deletions cases/2Dcontactline-vortex-oscillate/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ stopAt endTime;

endTime 1.0;

Umax 0.2;
Umax 0.2;

CFL 0.5;
CFL 0.5;

// safty factor which is necessary to ensure maxCFL for some reason
CFLsafty 1.0;
CFLsafty 1.0;

// dummy float value. Will be replaced by Allrun
deltaX 0.0;
deltaX 1.0;

deltaT #eval "$CFL * $CFLsafty * $deltaX / $Umax";

Expand Down
Loading

0 comments on commit c5c5e5b

Please sign in to comment.