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

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

Merged
merged 4 commits into from
Oct 26, 2023

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 <[email protected]>
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