Skip to content

Commit

Permalink
update molar masses of sources, default=1
Browse files Browse the repository at this point in the history
  • Loading branch information
levuvietphong committed Feb 17, 2025
1 parent 626fe83 commit f779d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ QCRelationFieldEvaluator::Evaluate_(const State& S, const std::vector<CompositeV

// return solute mass rate by multiplying with discharge (molC/s)
// Here we assume the molar mass is 1. TODO: add molar mass to the function.
surf_src[0][c] = source_mass * field_flow * molar_den[0][c] / cv[0][c];
surf_src[0][c] = source_mass * field_flow / cv[0][c];
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ QCRelationOverlandEvaluator::Evaluate_(const State& S, const std::vector<Composi

// transport source (mass) as a function of discharge (e.g. overland)
double source_transport = (*QC_curve_)(std::vector<double>{ total_flux_meter });
surf_src[0][c] = source_transport * total_flux_meter * molar_den[0][c] / cv[0][c];
surf_src[0][c] = source_transport * total_flux_meter / cv[0][c];
}
}
}
Expand Down

0 comments on commit f779d37

Please sign in to comment.