Rectangular domain definition using multigrid.h

324 views
Skip to first unread message

alessandr...@gmail.com

unread,
Apr 26, 2021, 9:04:22 AM4/26/21
to basilisk-fr
Dear all,
I have a question about the definition of a 2D "X x Y" rectangular domain "length x height" using multigrid.h. 
Is there a way to define a domain such that "length = n*height" with n even? ( from my understanding, only odd values of n are possible).

Thanks for your help.
Cheers,
Alessandro


Arthur Ghigo

unread,
Apr 26, 2021, 1:38:01 PM4/26/21
to alessandr...@gmail.com, basilisk-fr
Hi Alessandro,

I think you can achieve this only with "multigrid.h" and by running your simulation in parallel with nproc = Height/Length.

Best,
Arthur Ghigo

--
You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/basilisk-fr/12a791f8-58b9-482e-a80c-3685c857ddeen%40googlegroups.com.


--
Best,
Arthur Ghigo

Alessandro Della Pia

unread,
Apr 27, 2021, 9:17:35 AM4/27/21
to Arthur Ghigo, basilisk-fr
Dear Arthur,
Thanks a lot for your answer.
From my understanding, if Height/Length is an even number, then a standard square domain is generated.
The only way to generate a rectangular domain with multigrid.h seems to be running the simulation with an odd number of processors, corresponding to an odd number of consecutive squares that make the rectangular domain.
Do you agree or I am missing something?

Thanks again,
Alessandro

Arthur Ghigo

unread,
Apr 27, 2021, 10:53:42 AM4/27/21
to Alessandro Della Pia, basilisk-fr
Hi Alessandro,

From my understanding, if Height/Length is an even number, then a standard square domain is generated.

No, the standard square/cubic domain is generated only if the number of procs np is a square (2^2, 3^2, 4^2)/ cubic (2^3, 3^3, ...) number.

The only way to generate a rectangular domain with multigrid.h seems to be running the simulation with an odd number of processors, corresponding to an odd number of consecutive squares that make the rectangular domain.

Any number of procs np that is not square/cubic will generate a non-cubic domain.

I also forgot to mention that you can define a non square/cubic domain using embedded boundaries:

Best,
Arthur Ghigo

Il giorno 26 apr 2021, alle ore 19:37, Arthur Ghigo <ghigo....@gmail.com> ha scritto:

Hi Alessandro,

I think you can achieve this only with "multigrid.h" and by running your simulation in parallel with nproc = Height/Length.

Best,
Arthur Ghigo

On Mon, Apr 26, 2021 at 6:04 AM alessandr...@gmail.com <alessandr...@gmail.com> wrote:
Dear all,
I have a question about the definition of a 2D "X x Y" rectangular domain "length x height" using multigrid.h. 
Is there a way to define a domain such that "length = n*height" with n even? ( from my understanding, only odd values of n are possible).

Thanks for your help.
Cheers,
Alessandro



--
You received this message because you are subscribed to the Google Groups "basilisk-fr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to basilisk-fr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/basilisk-fr/12a791f8-58b9-482e-a80c-3685c857ddeen%40googlegroups.com.


--
Best,
Arthur Ghigo



--
Best,
Arthur Ghigo

Alessandro Della Pia

unread,
Apr 27, 2021, 12:03:47 PM4/27/21
to Arthur Ghigo, basilisk-fr
Many thanks Arthur,
I really appreciate your help.
Best,
Alessandro
Reply all
Reply to author
Forward
0 new messages