Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output of fluxes to LiquidFlow process #2760

Merged
merged 7 commits into from
Jan 21, 2020

Conversation

TomFischer
Copy link
Member

@TomFischer TomFischer commented Jan 8, 2020

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?:
    The flux calculation is now available for the LiquidFlow process. This works analogously to the other implementations in the HT-Process, HC-Process and groundwater flow process. Documentation already exists for this.

@TomFischer TomFischer force-pushed the LiquidFlowFluxes branch 5 times, most recently from f4de690 to c1a07a3 Compare January 15, 2020 10:00
- Forward the output folder and mesh vector from ProjectData to CreateLiquidFlow.
- Create an optional SurfaceFluxData object.
@@ -121,5 +125,39 @@ void LiquidFlowProcess::computeSecondaryVariableConcrete(const double t,
x, _coupled_solutions);
}

Eigen::Vector3d LiquidFlowProcess::getFlux(
std::size_t element_id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::size_t element_id,
std::size_t const element_id,

// according to the right hand rule
// for correct results it is necessary to multiply the normal with -1
surface_element_normal *= -1;
auto getSurfaceNormal =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a variable, should be get_surface_normal.

Suggested change
auto getSurfaceNormal =
auto get_surface_normal =

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct { void operator() { } } get_surface_normal;

@endJunction
Copy link
Member

Minor things only. If no review 'til tomorrow, merge it.

@endJunction endJunction merged commit 46e5666 into ufz:master Jan 21, 2020
@TomFischer TomFischer deleted the LiquidFlowFluxes branch January 21, 2020 12:29
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants