Skip to content

Adding Inlet/Outlet warning message for twofluid hydraulic solver#11652

Merged
uxuech merged 4 commits intomasterfrom
2F_inlet_outlet_warning
Oct 26, 2023
Merged

Adding Inlet/Outlet warning message for twofluid hydraulic solver#11652
uxuech merged 4 commits intomasterfrom
2F_inlet_outlet_warning

Conversation

@uxuech
Copy link
Contributor

@uxuech uxuech commented Oct 3, 2023

📝 Description
Including a warning message to verify if the inlet/outlet boundary conditions are correctly set, as it affects to the calculated theoretical volume of the system.

@uxuech uxuech requested a review from a team as a code owner October 3, 2023 16:21
…okes_two_fluid_hydraulic_solver.py

Co-authored-by: Philipp Bucher <philipp.bucher@tum.de>
def _HydraulicBoundaryConditionCheck(self,boundary,name):
# Check if the inlet and outl
computing_model_part = self.GetComputingModelPart()
not_boundary_nodes=any([node.Is(boundary) for node in computing_model_part.Nodes])
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
not_boundary_nodes=any([node.Is(boundary) for node in computing_model_part.Nodes])
not_boundary_nodes=not any([node.Is(boundary) for node in computing_model_part.Nodes])

I think it should be like this, but please check the logic yourself, I only wanted to point out a potentially smarter way

@uxuech uxuech merged commit 2f59919 into master Oct 26, 2023
@uxuech uxuech deleted the 2F_inlet_outlet_warning branch October 26, 2023 15:13
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