Aneurysm expleination

Hi guys,
I’m trying to simulate a flow through a porous media of a 1 phase flow (for now) using the aneurysm.bounceback as a base case (the geometry is in a STL file). My media has 1 inlet and 1 outlet, but the geometry is complex and of course I have solid parts also at inlet and outlet. I have 2 questions:

  1. Can I simply create a BOX3D for inlet and outlet, set boundary condition and then voxelize the domain?In this way I would avoid the definition of Inlet and Outlet starting from the geometry.
  2. I really don’t understand the code of Aneurysm from line 315 to 360! It seems like the definition of boundary condition is made manually without taking inputs from the geometry.

Thank you

Alessandro