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

BHE_1U flow properties update and bugfixes. #2271

Merged
merged 4 commits into from
Nov 28, 2018

Conversation

endJunction
Copy link
Member

Use already extracted code. This prevents code duplication for 2U and the CXA/CXC implementations.

@ChaofanChen Could you please review this?

@ChaofanChen
Copy link
Member

@endJunction I'd love to. Thank you very much.

@endJunction endJunction changed the title BHE_1U flow properties update. BHE_1U flow properties update and bugfixes. Nov 27, 2018
@ChaofanChen
Copy link
Member

@endJunction Could you please move the implementation of the constructor and other functions in "CreateFlowAndTemperatureControl.h" to the cpp file? In the case of the CXA/CXC or 2U BHE, we also need to call the function named "createFlowAndTemperatureControl", and this will cause an error of multiple definition when compiling. Besides, we also need to enrich flow and temperature boundary conditions including coupled with heat pump. I am not sure if my understanding is right, but please consider it.

@endJunction
Copy link
Member Author

@ChaofanChen CreateFlowAndTemperatureControl.h is not part of this PR. Please open another PR.

double outsideArea() const
{
constexpr double pi = boost::math::constants::pi<double>();
double const d = diameter + wall_thickness;
Copy link
Member

Choose a reason for hiding this comment

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

2 * wall_thickness?

Copy link
Member

@TomFischer TomFischer left a comment

Choose a reason for hiding this comment

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

Looks good. After '2 * ...' ⏩
When @ChaofanChen has reviewed then the PR can be merged.

Copy link
Member

@ChaofanChen ChaofanChen left a comment

Choose a reason for hiding this comment

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

Looks good.

double outsideArea() const
{
constexpr double pi = boost::math::constants::pi<double>();
double const d = diameter + wall_thickness;
Copy link
Member

Choose a reason for hiding this comment

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

d = diameter + wall_thickness * 2 ?

endJunction and others added 4 commits November 28, 2018 15:07
Eliminates code duplication in future 2U implementation.
This is used in the CXA/CXC implementations.
The result is the same, but semantically it was in wrong order.
@endJunction endJunction merged commit 9d4144f into ufz:master Nov 28, 2018
@endJunction endJunction deleted the BHE1U_flow_properties branch November 28, 2018 16:16
@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
4 participants