Basic question: what is the correspondence between cell ID's and grid positions?

11 views
Skip to first unread message

Alejandro Fernández

unread,
Sep 23, 2023, 7:41:57 AM9/23/23
to pflotran-dev
Dear all,

I am starting with PFLOTRAN and trying to run some first 2-D example simulations of flow and transport. I want to enter a heterogeneous permeability distribution and I see that there are two input methods: cell_indexed mode, and gridded mode. If I go for the cell_indexed mode, I wonder what is the correspondence between cell ID's and grid positions? Also, for the future, I wonder where I can find these type of basic information/questions?
Thanks a lot in advance.

Cheers,
Alejandro

Kris Kuhlman

unread,
Sep 23, 2023, 10:16:16 AM9/23/23
to pflotr...@googlegroups.com
It counts up in x, then y, then z.

You can also add NATUAL_ID to the output block, and it will write cell ids in the HDF5 output, which you can look at using paraview.

Kris

--
You received this message because you are subscribed to the Google Groups "pflotran-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pflotran-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pflotran-dev/93723c2b-2fe6-478a-b1f2-109b25d4ac1dn%40googlegroups.com.

Kris Kuhlman

unread,
Sep 23, 2023, 10:46:42 AM9/23/23
to pflotr...@googlegroups.com
NATURAL_ID (typo)

Alejandro Fernández

unread,
Sep 25, 2023, 6:54:54 AM9/25/23
to pflotr...@googlegroups.com
Thank you!
I will look into that.
Cheers,
Alejandro

You received this message because you are subscribed to a topic in the Google Groups "pflotran-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pflotran-dev/Xiv0-8evIMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pflotran-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pflotran-dev/CACQ2i_Sx-g__ZXmCj0az391MLaxPeN07UnAo2oGp3BC95p%2BdTg%40mail.gmail.com.


--
Ph.D. Alejandro Fernandez Visentini


Hammond, Glenn E

unread,
Sep 25, 2023, 10:50:25 AM9/25/23
to pflotr...@googlegroups.com, pflotra...@googlegroups.com

Alejandro,

 

To add to what Kris stated….

 

For structured grids:

 

natural_id = i + (j-1)*nx + (k-1)*nx*ny

 

If the grid spacing is irregular in x, y or z, it becomes more challenging to predict the location of cell centers, but the numbering is identical.

 

For unstructured grids:

 

There is no formula. You need a third-party preprocessing tool to generate the grid and map the values for cell indexed datasets. PFLOTRAN will map the values for gridded datasets.

 

Glenn

 

From: pflotr...@googlegroups.com <pflotr...@googlegroups.com> On Behalf Of Alejandro Fernández
Sent: Monday, September 25, 2023 3:55 AM
To: pflotr...@googlegroups.com
Subject: Re: [pflotran-dev: 6212] Basic question: what is the correspondence between cell ID's and grid positions?

 

Check twice before you click! This email originated from outside PNNL.

 

Alejandro Fernández

unread,
Sep 26, 2023, 3:47:13 PM9/26/23
to pflotr...@googlegroups.com
Dear Glenn,

Thank you for your addition, I will continue working on this!

Cheers,
Alejandro

Reply all
Reply to author
Forward
0 new messages