Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b4c8f7e
WIP: update to new version
HenningScheufler Oct 1, 2021
451bcd5
WIP it compiles without MULES
HenningScheufler Oct 2, 2021
e2334ed
WIP everything compiles
HenningScheufler Oct 2, 2021
c431cfd
Merge branch 'develop' into of2106
HenningScheufler Oct 5, 2021
02ee9e1
ENH: CI checks compilation
HenningScheufler Oct 5, 2021
9fb0631
ENH: all tests pass in of2106
HenningScheufler Oct 5, 2021
eeabd6d
Merge branch 'of2106' of https://github.com/DLR-RY/TwoPhaseFlow into …
HenningScheufler Oct 5, 2021
0bf361d
ENH: CI runs the test with not slow flag
HenningScheufler Oct 5, 2021
e0f93ad
FIX: implicitFunction are consistent with of2106
HenningScheufler Oct 7, 2021
69151ab
FIX:Ci
HenningScheufler Oct 7, 2021
48663b1
FIX: testsuite (#9)
HenningScheufler Oct 8, 2021
882918e
FIX compile with clang
HenningScheufler Dec 1, 2021
720b614
FIX compile with clang
HenningScheufler Dec 1, 2021
b5cd86d
FIX removed tabulatedthermo fixed coffeePot
HenningScheufler Dec 1, 2021
e03efa9
ENH: added profiling to geometricVoF
HenningScheufler Dec 2, 2021
9cd5e0a
FIX: removed test.py
HenningScheufler Jan 25, 2022
be2b811
FIX removed msh files
HenningScheufler Jan 25, 2022
43310a7
update gitignore
HenningScheufler Jan 25, 2022
0c4bc57
Merge branch 'of2106' into feature-test-run
HenningScheufler Jan 25, 2022
478c1bb
ENH: update multiDimAMR
HenningScheufler Jan 25, 2022
95cc352
FIX: change selectors and thermoModels
HenningScheufler Jan 25, 2022
fd3faab
FIX: all case in run are running
HenningScheufler Jan 25, 2022
d431a53
update CI
HenningScheufler Jan 25, 2022
b6aef1a
FIX CI
HenningScheufler Jan 25, 2022
0e28eab
Update openfoam.yml (#16)
HenningScheufler Jan 25, 2022
7fb2b63
update README
HenningScheufler Jan 27, 2022
494f8ea
Fix CHT used wrong kappa added test
HenningScheufler Feb 3, 2022
cbaf314
FIX: update multiDIMAMR for compatiblity with of2112
HenningScheufler Apr 4, 2022
15c8fee
ENH: update logs if test fail
HenningScheufler Sep 4, 2022
3e69b4d
DOC: update readme and added runAll script in benchmarks suits
HenningScheufler Oct 1, 2022
330ab0e
STY: renamed accelerationModel to accelerationForceModel
HenningScheufler Nov 19, 2022
26b99d2
STY: change name of constructor tables
HenningScheufler Nov 19, 2022
a78703e
update stefan problem
HenningScheufler Nov 21, 2022
0d1e4fb
update suckingInterface
HenningScheufler Nov 21, 2022
6d94d19
Merge branch 'of2112' into of2206
tmaric Dec 9, 2022
778fef0
[OpenFOAM-v2206] port compiles
tmaric Dec 9, 2022
212b715
[Actions] openfoam2206 workflow
tmaric Dec 10, 2022
93405ac
Merge branch 'of2206' of https://github.com/tmaric/TwoPhaseFlow into …
HenningScheufler Dec 11, 2022
0c3d50a
FIX: zoneDistribute linked wrong header
HenningScheufler Dec 11, 2022
3b38456
update testsuite
HenningScheufler Dec 11, 2022
333f3dd
CI: fix of2206 package not found
HenningScheufler Dec 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/openfoam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: openfoam

on:
push:
branches: [ of2206 ]
pull_request:
branches: [ of2206 ]

jobs:
build-and-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: setup openfoam
run: |
curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get install libglu1-mesa
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt-get update
sudo apt-get install openfoam2206-default
- name: compile library
run: |
export WM_NCOMPPROCS=2
openfoam2206 -c ./Allwmake
openfoam2206 -c ./get-gmsh.sh
- name: test
run: |
python -m pip install --upgrade pip
pip install oftest scipy casefoam
openfoam2206 -c "py.test --writeNSteps=1 run/"
openfoam2206 -c "py.test -m 'not slow'"

- name: upload logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: logs
path: logs
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ lnInclude
#OpenFOAM
Cases
CasesTri
polyMesh/*
0.[0-9]* [1-9]* *e-*
*/polyMesh/*
0.[0-9]*
[1-9]*
*e-*
processor*
logs
AlphaInit
controlDict.orig
*.msh
gmsh-*-Linux64

# Build directories - anywhere
linux*Clang*/
Expand Down
10 changes: 2 additions & 8 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${FOAM_SRC}/OpenFOAM/lnInclude",
"${FOAM_SRC}/finiteVolume/lnInclude"
],
"browse.path":[
"${workspaceFolder}/**",
"${FOAM_SRC}/OpenFOAM/lnInclude",
"${FOAM_SRC}/finiteVolume/lnInclude"
"${FOAM_SRC}/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"cppStandard": "c++11",
"intelliSenseMode": "clang-x64"
}
],
Expand Down
28 changes: 21 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"name": "OF-Debug",
"type": "cppdbg",
"request": "attach",
"processId": "${command:pickProcess}",
"program": "${env:FOAM_USER_APPBIN}/${fileBasenameNoExtension}",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "wmake-build",
"miDebuggerPath": "/usr/bin/gdb"
},
{
"name": "multiRegionPhaseChangeFlow",
"type": "cppdbg",
"request": "launch",
"program": "enter program name, for example ${workspaceFolder}/a.out",
"program": "${env:FOAM_USER_APPBIN}/multiRegionPhaseChangeFlow",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"cwd": "/media/henning/ssd1linux/libsAndApps/release/TwoPhaseFlow/testsuite/cht/fixedFlux", //"${input:casepath}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
Expand All @@ -23,5 +37,5 @@
}
]
}
]
],
}
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"files.associations": {
"*.H": "cpp",
"*.C": "cpp",
"vector": "cpp",
"limits": "cpp"
"random": "cpp",
"vector": "cpp"
},
"C_Cpp.intelliSenseEngine": "Tag Parser",
"python.testing.pytestArgs": [
"."
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"python.formatting.provider": "black"
}
38 changes: 34 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "echo",
"type": "shell",
"command": "echo Hello"
"label": "wmake-build",
"command": "wmake",
"problemMatcher": [
"$gcc"
],
"group": "build"
},
{
"type": "shell",
"label": "Allwmake",
"command": "./Allwmake",
"problemMatcher": [
"$gcc"
],
"group": "build"
},
{
"type": "cppbuild",
"label": "C/C++: cpp build active file",
"command": "/usr/bin/cpp",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "/usr/bin"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "compiler: /usr/bin/cpp"
}
]
}
2 changes: 2 additions & 0 deletions apps/benchmark/reconstructInterface/Make/options
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EXE_INC = \
-I../../../src/VoF/lnInclude \
-I$(FOAM_UTILITIES)/preProcessing/setAlphaField/alphaFieldFunctions/lnInclude \
-I../../../src/postProcessing/lnInclude \
-I../../../src/surfaceForces/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
Expand All @@ -9,6 +10,7 @@ EXE_INC = \

EXE_LIBS = \
-L$(FOAM_USER_LIBBIN) \
-lalphaFieldFunctions \
-lfiniteVolume \
-lmeshTools \
-lsurfMesh \
Expand Down
7 changes: 3 additions & 4 deletions apps/benchmark/reconstructInterface/reconstructInterface.C
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Author
#include "cutCellImpFunc.H"
#include "cutCellIso.H"
#include "reconstructionError.H"
#include "isoCutCell.H"

#include "surfaceForces.H"

Expand Down Expand Up @@ -171,7 +170,7 @@ int main(int argc, char *argv[])
)
);

vector centre = initAlphaFieldDict.lookup("origin");
vector centre = initAlphaFieldDict.get<vector>("origin");
// scalar radius = readScalar(initAlphaFieldDict.lookup("radius"));

Random rndCentre(1234567);
Expand Down Expand Up @@ -221,15 +220,15 @@ int main(int argc, char *argv[])
initAlphaFieldDict.set<vector>("origin",centrePos);
}

centre = initAlphaFieldDict.lookup("origin");
centre = initAlphaFieldDict.get<vector>("origin");

Info << "centre " << centre << endl;

Foam::autoPtr<Foam::implicitFunction> func
(
implicitFunction::New
(
word(initAlphaFieldDict.lookup("type")),
word(initAlphaFieldDict.get<word>("type")),
initAlphaFieldDict
)
);
Expand Down
2 changes: 2 additions & 0 deletions apps/initAlphaField/Make/options
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EXE_INC = \
-I../../src/VoF/lnInclude \
-I$(FOAM_UTILITIES)/preProcessing/setAlphaField/alphaFieldFunctions/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude \
Expand All @@ -9,6 +10,7 @@ EXE_INC = \

EXE_LIBS = \
-L$(FOAM_USER_LIBBIN) \
-lalphaFieldFunctions \
-lfiniteVolume \
-lsurfMesh \
-lVoF \
Expand Down
2 changes: 0 additions & 2 deletions apps/initAlphaField/initAlphaField.C
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ Author
\*---------------------------------------------------------------------------*/

#include "fvCFD.H"
#include "isoCutFace.H"
#include "isoCutCell.H"
#include "searchableCylinder.H"
#include "searchableSurface.H"
#include "mathematicalConstants.H"
Expand Down
2 changes: 2 additions & 0 deletions apps/setFieldfromTable/Make/options
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
EXE_INC = \
-I$(FOAM_UTILITIES)/preProcessing/setAlphaField/alphaFieldFunctions/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude \
Expand All @@ -7,6 +8,7 @@ EXE_INC = \
-I../../src/VoF/lnInclude

EXE_LIBS = \
-lalphaFieldFunctions \
-lfiniteVolume \
-ldynamicMesh \
-lmeshTools \
Expand Down
2 changes: 1 addition & 1 deletion apps/setFieldfromTable/setFieldfromTable.C
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int main(int argc, char *argv[])

Foam::autoPtr<Foam::implicitFunction> func = implicitFunction::New
(
setFieldTableDict.get<word>("function"),
setFieldTableDict.get<word>("type"),
setFieldTableDict
);

Expand Down
8 changes: 4 additions & 4 deletions apps/setFieldfromTable/setFieldfromTableDict
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,29 @@ hasHeaderLine false;
timeColumn 0;
valueColumns (1);

function composedFunction;
type composedFunction;
mode add;
composedFunctions
{
plane
{
function plane;
type plane;
centre (0 1. 0);
normal (0 1 0);

}

sphere
{
function impSphere;
type impSphere;
radius 0.4;
centre (0.5 0.8 0.5);
scale 1;
}

sphere2
{
function impSphere;
type impSphere;
radius 0.4;
centre (0.5 0.5 0.5);
}
Expand Down
8 changes: 4 additions & 4 deletions get-gmsh.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory

wget https://gmsh.info/bin/Linux/gmsh-3.0.6-Linux64.tgz
tar zxvf gmsh-3.0.6-Linux64.tgz
cp gmsh-3.0.6-Linux64/bin/gmsh $FOAM_USER_APPBIN/gmshv306
rm gmsh-3.0.6-Linux64.tgz
wget https://gmsh.info/bin/Linux/gmsh-4.9.3-Linux64.tgz
tar zxvf gmsh-4.9.3-Linux64.tgz
cp gmsh-4.9.3-Linux64/bin/gmsh $FOAM_USER_APPBIN/gmshv493
rm gmsh-4.9.3-Linux64.tgz
2 changes: 1 addition & 1 deletion modules/multiDimAMR
Submodule multiDimAMR updated 32 files
+2 −2 README.md
+1 −1 src/dynamicLoadBalanceFvMesh/adaptCriteria/adaptCriteria.C
+5 −7 src/dynamicLoadBalanceFvMesh/dynamicMultiDimRefineFvMesh/dynamicMultiDimRefineFvMesh.C
+1 −3 src/dynamicLoadBalanceFvMesh/dynamicMultiDimRefineFvMesh/dynamicMultiDimRefineFvMesh.H
+1 −1 src/dynamicLoadBalanceFvMesh/dynamicMultiDimRefineFvMesh/dynamicMultiDimRefineFvMeshTemplates.C
+8 −8 src/dynamicLoadBalanceFvMesh/hexRef/hexRef.C
+2 −2 src/dynamicLoadBalanceFvMesh/hexRef/hexRef3D/hexRef3D.C
+5 −5 src/dynamicLoadBalanceFvMesh/hexRef/hexRef4/hexRef4.C
+5 −5 src/dynamicLoadBalanceFvMesh/hexRef/hexRef4Axi/hexRef4Axi.C
+3 −3 src/dynamicLoadBalanceFvMesh/hexRef/hexRefNew.C
+1 −1 src/dynamicLoadBalanceFvMesh/hexRef/refinementHistoryMultiDim.C
+1 −1 test/test-2DHex/constant/transportProperties
+54 −0 tutorials/damBreak/0.orig/U
+51 −0 tutorials/damBreak/0.orig/alpha.water
+59 −0 tutorials/damBreak/0.orig/p_rgh
+10 −0 tutorials/damBreak/Allclean
+15 −0 tutorials/damBreak/Allrun
+17 −0 tutorials/damBreak/Allrun-parallel
+88 −0 tutorials/damBreak/constant/dynamicMeshDict
+22 −0 tutorials/damBreak/constant/g
+38 −0 tutorials/damBreak/constant/transportProperties
+21 −0 tutorials/damBreak/constant/turbulenceProperties
+38 −0 tutorials/damBreak/system/balanceParDict
+114 −0 tutorials/damBreak/system/blockMeshDict
+86 −0 tutorials/damBreak/system/controlDict
+50 −0 tutorials/damBreak/system/decomposeParDict
+59 −0 tutorials/damBreak/system/fvSchemes
+93 −0 tutorials/damBreak/system/fvSolution
+36 −0 tutorials/damBreak/system/setFieldsDict
+1 −1 tutorials/damBreakWithObstacle/system/balanceParDict
+1 −1 tutorials/damBreakWithObstacle/system/controlDict
+1 −1 tutorials/damBreakWithObstacle/system/decomposeParDict
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[pytest]
#minversion = 6.0
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
addopts = -ra -v --import-mode=importlib --tb=short --cache-clear
testpaths =
testsuite
2 changes: 1 addition & 1 deletion run/Reorientation/system/blockMeshDict
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


convertToMeters 0.001;
scale 0.001;

vertices // testZelle is 80 mm hoch galube ich
(
Expand Down
2 changes: 1 addition & 1 deletion run/Reorientation/system/setAlphaFieldDict
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FoamFile

field alpha.phase1;
type plane;
direction (0 1 0);
normal (0 1 0);

origin (0 1e-6 0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;
scale 1;

vertices
(
Expand Down
Loading