optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
117 stars 34 forks source link

does bitpit support defining a domain with different lengths in different directions #366

Closed Watchmojo closed 1 year ago

Watchmojo commented 1 year ago

does bitpit support defining a domain with different lengths in different directions, such as [0,1] X [0,3] X [0,5].

thank you

andrea-iob commented 1 year ago

If we are talking about the octree modules (PABLO or VolOctree), only square/cubic domains are supported (e.g. [0,3] X [0,3] X [0,3]).

andrea-iob commented 1 year ago

The unstructured mesh module (VolUnstructured) allows to use any domain shape, but the underlying data structures will be the ones of a generic unstructured mesh and they will not use an octree for refinement/partitioning/...

DMurataj01 commented 1 year ago

@Watchmojo

does bitpit support defining a domain with different lengths in different directions, such as [0,1] X [0,3] X [0,5].

thank you

Some light modifications to PABLO i.e. changing the L to mL (double to darray3) and updating the logic that follows should get you there pretty quickly. You can then pipe this to VolUnstructured and should be able to use that

Watchmojo commented 1 year ago

Thanks.