Exawind / amr-wind

AMReX-based structured wind solver
https://exawind.github.io/amr-wind
Other
103 stars 78 forks source link

Move channel flow wall model assert on body force to a better place #1075

Closed moprak-nrel closed 1 month ago

moprak-nrel commented 1 month ago

Summary

We require that the normal direction is 2 and that the body force in the 2 direction is 0 when using a wall model. However the constructor for the wall model gets initialized even when a wall model for the channel flow even when not using one. This PR moves the assert to the right place.

Pull request type

Please check the type of change introduced:

Checklist

The following is included:

This PR was tested by running:

Additional background

This fixes the reg test channel_mol_mesh_map_z from failing.

Issue Number:

marchdf commented 1 month ago

Thank you!