Skip to content

Commit

Permalink
Calculated fvSource on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe authored Jun 23, 2024
1 parent 77be385 commit 7b3f157
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/adjoint/DASolver/DAHeatTransferFoam/DAHeatTransferFoam.C
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ label DAHeatTransferFoam::solvePrimal(
Info << "Time = " << runTime.timeName() << nl << endl;
}

if (hasFvSource_)
{
volScalarField& fvSource = fvSourcePtr_();
daFvSourcePtr_->calcFvSource(fvSource);
}

fvScalarMatrix TEqn(
fvm::laplacian(k, T)
+ fvSource);
Expand Down

0 comments on commit 7b3f157

Please sign in to comment.