Skip to content

Commit

Permalink
WIP: Add functions organ module and definition Mixture
Browse files Browse the repository at this point in the history
  • Loading branch information
micheltakken committed Oct 13, 2023
1 parent 082ad7e commit bf404ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/simulation/Simulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ namespace sim {
*/
void simulate();

/**
* @brief Calculate and set new state of the continuous fluid simulation. Move mixture positions and create new mixtures if necessary.
*
* @param timeStep Time step in s for which the new mixtures state should be calculated.
*/
void calculateNewMixtures(InstantaneousMixingModel<T>* model, double timeStep);

/**
* @brief Print the results as pressure at the nodes and flow rates at the channels
*/
Expand Down
4 changes: 4 additions & 0 deletions src/simulation/Simulation.hh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ namespace sim {
// compute nodal analysis again
std::cout << "[Simulation] Conduct nodal analysis " << 0 <<"..." << std::endl;
pressureConverged = nodal::conductNodalAnalysis(this->network);

if (PLATFORM == ORGAN) {
calculateNewMixtures();
}

}

Expand Down

0 comments on commit bf404ad

Please sign in to comment.