Skip to content

Commit

Permalink
Package renaming (#2)
Browse files Browse the repository at this point in the history
* renaming

* clone submodules in CI container

* check out submodules manually

* git dependency

* checkout in recursive mode

* install git first
  • Loading branch information
pzimbrod authored Jun 24, 2022
1 parent 354e236 commit c5748dc
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ jobs:
container:
image: opencfd/openfoam2106-default
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Build tools
run: sudo apt-get update && apt-get -y install build-essential
run: sudo apt-get update && apt-get -y install build-essential cmake git

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Source OpenFOAM Environment
run: sudo chmod +x /usr/lib/openfoam/openfoam2106/etc/openfoam
Expand Down
1 change: 1 addition & 0 deletions Allwclean
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cd "${0%/*}" || exit # Run from this directory

wclean libso laserDTRM
wclean libso phasesSystem
./WENOEXT/Allwclean
wclean

#------------------------------------------------------------------------------
5 changes: 5 additions & 0 deletions Allwmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments
#------------------------------------------------------------------------------

echo "Building external libraries"
./WENOEXT/Allwmake

echo "Building application"
wmake $targetType laserDTRM
wmake $targetType phasesSystem
wmake $targetType


#------------------------------------------------------------------------------
4 changes: 2 additions & 2 deletions Make/files
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
lpbfFoam.C
thermocapillaryInterFoam.C

EXE = $(FOAM_APPBIN)/lpbfFoam
EXE = $(FOAM_APPBIN)/thermocapillaryInterFoam
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[![DOI](https://zenodo.org/badge/368456876.svg)](https://zenodo.org/badge/latestdoi/368456876)
![GitHub](https://img.shields.io/github/license/pzimbrod/lpbfFoam)
![Travis (.org)](https://api.travis-ci.com/pzimbrod/lpbfFoam.svg?branch=master)
![GitHub](https://img.shields.io/github/license/pzimbrod/thermocapillaryInterFoam)
![Travis (.org)](https://api.travis-ci.com/pzimbrod/thermocapillaryInterFoam.svg?branch=master)
![foam](https://img.shields.io/badge/made%20for-OpenFOAM-blue)
![2112](https://img.shields.io/badge/Version-2106-blue)
![GitHub issues](https://img.shields.io/github/issues/pzimbrod/lpbfFoam)
![GitHub last commit](https://img.shields.io/github/last-commit/pzimbrod/lpbfFoam)
![GitHub issues](https://img.shields.io/github/issues/pzimbrod/thermocapillaryInterFoam)
![GitHub last commit](https://img.shields.io/github/last-commit/pzimbrod/thermocapillaryInterFoam)

# OpenFOAM custom solver lpbfFoam
# OpenFOAM custom solver thermocapillaryInterFoam

Source Code for a custom solver, based von OpenFOAM v2106 solver `icoReactingMultiphaseInterFoam`. Its main intended purpose is to model Powder Bed Fusion additive manufacturing (PBF), hence the name.
This solver was created due to the lack of a universal formulation for surface tension in the standard solvers. It has been shown however that marangoni stresses influence melt pools during laser melting considerably. This aims to provide a formulation that resolves those stresses in an explicit manner.
Source Code for a custom solver, based von OpenFOAM v2106 solver `icoReactingMultiphaseInterFoam`. Its main intended purpose is to model surface tension dependent interface flows, hence the name.
This solver was created due to the lack of a universal formulation for surface tension in the standard solvers. It has been shown however that marangoni stresses influence e.g. melt pools during laser melting considerably. This aims to provide a formulation that resolves those stresses in an explicit manner.

## Features

Expand All @@ -19,6 +19,8 @@ This solver was created due to the lack of a universal formulation for surface t
* Heat input using `laserDTRM`
* Fluid surface tension forces
* Marangoni force
* Adaptive Mesh refinement
* High order WENO stencils for spatial discretization

## Theory

Expand Down Expand Up @@ -46,7 +48,7 @@ This solver uses a set of proprietary models that come with it. For the original

I will continue to support v2106 and not migrate to later versions as `icoReactingMultiphaseInterFoam` is partly dependent on the global libraries packaged in `src` but also comes with own implementations. In versions after 2106, the dependencies have changed and thus compatibility cannot be guaranteed.

Clone the repo and compile the source code using the `Allwmake` script. Requires the standard set of compilers used by standard OpenFOAM installations. After that, you can call the solver in the standard OpenFOAM way from the terminal with the command `lpbfFoam`.
Clone the repo (using `--recurse-submodules` to also fetch external libraries) and compile the source code using the `Allwmake` script. Requires the standard set of compilers used by standard OpenFOAM installations as well as CMake for `WENOEXT` (WENO stencils). After that, you can call the solver in the standard OpenFOAM way from the terminal with the command `thermocapillaryInterFoam`.

## Citing

Expand Down
File renamed without changes.

0 comments on commit c5748dc

Please sign in to comment.