Skip to content

Commit

Permalink
corrected explicit energy solve forced to remain forward euler. (#37)
Browse files Browse the repository at this point in the history
* corrected explicit energy solve forced to remain forward euler. Also, added ExaCA support for all heat transfer tutorials

* made foamToExaCA a functionObject ExaCA to remain consistent with OpenFOAM library structure

* updated build instructions for CI
  • Loading branch information
colemanjs authored Nov 7, 2024
1 parent 9869de2 commit f484321
Show file tree
Hide file tree
Showing 27 changed files with 407 additions and 311 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ jobs:
- name: Build AdditiveFOAM
run: |
. /opt/openfoam10/etc/bashrc
cd applications/solvers/additiveFoam/movingHeatSource
wmake libso
cd -
cd applications/solvers/additiveFoam
wmake
./Allwmake
- name: Test AdditiveFOAM
run: |
. /opt/openfoam10/etc/bashrc
Expand Down
8 changes: 8 additions & 0 deletions applications/solvers/additiveFoam/Allwclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

wclean libso functionObjects/ExaCA
wclean libso movingHeatSource
wclean

#------------------------------------------------------------------------------
11 changes: 11 additions & 0 deletions applications/solvers/additiveFoam/Allwmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments

wmake $targetType functionObjects/ExaCA
wmake $targetType movingHeatSource
wmake $targetType

#------------------------------------------------------------------------------
4 changes: 2 additions & 2 deletions applications/solvers/additiveFoam/Make/files
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BCs/mixedTemperature/mixedTemperatureFvPatchScalarField.C
BCs/marangoni/marangoniFvPatchVectorField.C
derivedFvPatchFields/mixedTemperature/mixedTemperatureFvPatchScalarField.C
derivedFvPatchFields/marangoni/marangoniFvPatchVectorField.C

additiveFoam.C

Expand Down
9 changes: 1 addition & 8 deletions applications/solvers/additiveFoam/additiveFoam.C
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ Description
#include "Polynomial.H"

#include "interpolateXY/interpolateXY.H"

#include "movingHeatSourceModel.H"
#include "foamToExaCA/foamToExaCA.H"

#include "EulerDdtScheme.H"
#include "CrankNicolsonDdtScheme.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Expand All @@ -65,8 +64,6 @@ int main(int argc, char *argv[])

scalar alphaCoNum = 0.0;

foamToExaCA ExaCA(T);

movingHeatSourceModel sources(mesh);

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Expand Down Expand Up @@ -97,17 +94,13 @@ int main(int argc, char *argv[])

#include "thermo/TEqn.H"

ExaCA.update();

runTime.write();

Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
<< nl << endl;
}

ExaCA.write();

return 0;
}

Expand Down
Loading

0 comments on commit f484321

Please sign in to comment.