Skip to content

Spatially variable Robin BC bug fixes #444

@aabrown100-git

Description

@aabrown100-git

Problem

In a recent pull request #437, I added capability to define a spatially variable Robin boundary condition. After attempting to use it with a more complex simulation, I encountered some bugs/inconsistencies

  1. To provide the vtp file containing the spatially varying values, the user defines a boundary condition xml element <Robin_vtp_file_path>. This is inconsistent with other boundary conditions that define an xml element <Spatial_values_file_path>.

  2. If mesh_scale_factor is not 1, the point matching between to the vtp file and the face object associated with the boundary condition fails

Solution

  1. Get rid of <Robin_vtp_file_path> and use <Spatial_values_file_path> instead to define a spatially variable boundary condition.

  2. Pass mesh_scale_factor into the BoundaryCondition class and scale coordinates so that point matching is successful.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions