diff --git a/LICENSE b/LICENSE index 3976164f..b9cce6c1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,13 +1,185 @@ -Copyright 2022 Akash Dhruv - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +Apache Open-Source License + +Version 2.0, January 2004 + + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + + +**************************************************************************************************** +DISCLAIMER + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +************************************************************************************************* diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..025a347b --- /dev/null +++ b/NOTICE @@ -0,0 +1,20 @@ +Copyright © 2023 Akash Dhruv and UChicago Argonne, LLC All right reserved + +Title: BoxKit + +By: Argonne National Laboratory ARGONNE NATIONAL LABORATORY, WITH A +FACILITY IN THE STATE OF ILLINOIS, IS OWNED BY THE UNITED STATES +GOVERNMENT, AND OPERATED BY UCHICAGO ARGONNE, LLC UNDER PROVISION OF A +CONTRACT WITH THE DEPARTMENT OF ENERGY. + +Licensed under the Apache License, Version 2.0 (the "License"). A copy +of the License is included in the file LICENSE. You may also obtain a +copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/boxkit/api/_read.py b/boxkit/api/_read.py index 41881b67..77150fe7 100644 --- a/boxkit/api/_read.py +++ b/boxkit/api/_read.py @@ -13,6 +13,8 @@ def read_dataset( force_memmap=False, nthreads=1, backend="serial", + monitor=False, + batch="auto", ): # pylint: disable=too-many-arguments disable=too-many-locals """ Create a dataset from a file @@ -28,6 +30,14 @@ def read_dataset( server : server dictionary + force_memamp : flag + + nthreads : integer + + backend : string parameter for parallel backend + + monitor : flag + (see tests/boiling.py and tests/heater.py for references) Returns @@ -41,7 +51,9 @@ def read_dataset( if not storage: storage = "numpy-memmap" - data_attributes, block_attributes = resources.read.options[source](filename, server) + data_attributes, block_attributes = resources.read.options[source]( + filename, server, nthreads, batch, monitor, backend + ) data = library.Data(storage=storage, **data_attributes) blocklist = [library.Block(data, **attributes) for attributes in block_attributes] diff --git a/boxkit/library/_block.py b/boxkit/library/_block.py index 7159624e..f3ba17cb 100644 --- a/boxkit/library/_block.py +++ b/boxkit/library/_block.py @@ -5,22 +5,26 @@ class Block: # pylint: disable=too-many-instance-attributes - """Default class for a Block. + """ + Class for storing block metadata Parameters ---------- - data : data object - attributes : dictionary - { 'dx' : grid spacing in x dir - 'dy' : grid spacing in y dir - 'dz' : grid spacing in z dir - 'xmin' : low bound in x dir - 'ymin' : low bound in y dir - 'zmin' : low bound in z dir - 'xmax' : high bound in x dir - 'ymax' : high bound in y dir - 'zmax' : high bound in z dir - 'tag' : block ID } + data : Boxkit Data object + attributes : Dictionary of attributes + + .. code-block:: + + 'dx' : grid spacing x direction + 'dy' : grid spacing y direction + 'dz' : grid spacing z direction + 'xmin' : low bound x direction + 'ymin' : low bound y direction + 'zmin' : low bound z direction + 'xmax' : high bound x direction + 'ymax' : high bound y direction + 'zmax' : high bound z direction + 'tag' : block ID """ type_ = "default" diff --git a/boxkit/library/_data.py b/boxkit/library/_data.py index a1cf5681..5d16caac 100644 --- a/boxkit/library/_data.py +++ b/boxkit/library/_data.py @@ -29,28 +29,32 @@ class Data(_DataBase): # pylint: disable=too-many-instance-attributes - """Default class to store data""" + """ + Class to store handles for physical data + + Parameters + ---------- + attributes : Dictionary of attributes + .. code-block:: + + 'nblocks' : total number of blocks, + 'nxb' : number of grid points per block x direction, + 'nyb' : number of grid points per block y direction, + 'nzb' : number of grid points per block z direction, + 'xguard' : number of guard cells x direction, + 'yguard' : number of guard cells y direction, + 'zguard' : number of guard cells z direction, + 'inputfile' : hdf5 inputfile default (None), + 'remotefile': sftp remote file default (None), + 'variables' : dictionary of variables default ({}), + 'storage' : ('numpy', 'zarr', 'dask', 'pyarrow') + """ type_ = "default" def __init__(self, **attributes): - """Initialize the class object - - Parameters - ---------- - attributes : dictionary - { 'nblocks' : total number of blocks, - 'nxb' : number of grid points per block in x dir, - 'nyb' : number of grid points per block in y dir, - 'nzb' : number of grid points per block in z dir, - 'xguard' : number of guard cells in x dir, - 'yguard' : number of guard cells in y dir, - 'zguard' : number of guard cells in z dir, - 'inputfile' : hdf5 inputfile default (None), - 'remotefile': sftp remote file default (None), - 'variables' : dictionary of variables default ({}), - 'storage' : ('numpy', 'zarr', 'dask', 'pyarrow')} - """ + """Initialize the class object""" + super().__init__() self.nblocks = 1 diff --git a/boxkit/resources/read/_flash.py b/boxkit/resources/read/_flash.py index f9916882..a8389df2 100644 --- a/boxkit/resources/read/_flash.py +++ b/boxkit/resources/read/_flash.py @@ -3,8 +3,12 @@ import h5py import h5pickle +from boxkit.library import Action -def read_flash(filename, server): + +def read_flash( + filename, server, nthreads, batch, monitor, backend +): # pylint: disable=too-many-locals disable=too-many-arguments """ Read dataset from FLASH output file @@ -59,32 +63,51 @@ def read_flash(filename, server): "variables": variables, } + get_blk_attributes.nthreads = nthreads + get_blk_attributes.backend = backend + get_blk_attributes.batch = batch + get_blk_attributes.monitor = monitor + # Create block attributes - block_attributes = [ - { - "dx": inputfile["block size"][lblock][0] / nxb, - "dy": ( - 1.0 - if inputfile["block size"][lblock][1] == 0.0 - else inputfile["block size"][lblock][1] / nyb - ), - "dz": ( - 1.0 - if inputfile["block size"][lblock][2] == 0.0 - else inputfile["block size"][lblock][2] / nzb - ), - "xmin": inputfile["bounding box"][lblock][0][0], - "ymin": inputfile["bounding box"][lblock][1][0], - "zmin": inputfile["bounding box"][lblock][2][0], - "xmax": inputfile["bounding box"][lblock][0][1], - "ymax": inputfile["bounding box"][lblock][1][1], - "zmax": inputfile["bounding box"][lblock][2][1], - "tag": lblock, - "level": inputfile["refine level"][lblock], - "leaf": bool(inputfile["node type"][lblock] == 1), - "inputproc": inputfile["processor number"][lblock], - } - for lblock in range(nblocks) - ] + block_attributes = get_blk_attributes( + (lblock for lblock in range(nblocks)), inputfile, nxb, nyb, nzb + ) return data_attributes, block_attributes + + +@Action +def get_blk_attributes(lblock, inputfile, nxb, nyb, nzb): + """ + lblock: block number + inputfile: HDF5 file handle + + Returns + ------- + block_dict + """ + block_dict = { + "dx": inputfile["block size"][lblock][0] / nxb, + "dy": ( + 1.0 + if inputfile["block size"][lblock][1] == 0.0 + else inputfile["block size"][lblock][1] / nyb + ), + "dz": ( + 1.0 + if inputfile["block size"][lblock][2] == 0.0 + else inputfile["block size"][lblock][2] / nzb + ), + "xmin": inputfile["bounding box"][lblock][0][0], + "ymin": inputfile["bounding box"][lblock][1][0], + "zmin": inputfile["bounding box"][lblock][2][0], + "xmax": inputfile["bounding box"][lblock][0][1], + "ymax": inputfile["bounding box"][lblock][1][1], + "zmax": inputfile["bounding box"][lblock][2][1], + "tag": lblock, + "level": inputfile["refine level"][lblock], + "leaf": bool(inputfile["node type"][lblock] == 1), + "inputproc": inputfile["processor number"][lblock], + } + + return block_dict diff --git a/boxkit/resources/read/_sample.py b/boxkit/resources/read/_sample.py index 196c99f1..67d2626d 100644 --- a/boxkit/resources/read/_sample.py +++ b/boxkit/resources/read/_sample.py @@ -3,7 +3,9 @@ import h5pickle as h5py -def read_test_sample(filename, server): # pylint: disable=too-many-locals +def read_test_sample( + filename, server, nthreads, batch, monitor, backend +): # pylint: disable=too-many-locals disable=too-many-arguments disable=unused-argument """ Read dataset from BoxKit test sample diff --git a/docs/boxkit.library._block.html b/docs/boxkit.library._block.html index 49070bf4..8064b860 100644 --- a/docs/boxkit.library._block.html +++ b/docs/boxkit.library._block.html @@ -86,23 +86,23 @@
class boxkit.library._block.Block(data=None, **attributes)

Bases: object

-

Default class for a Block.

+

Class for storing block metadata

Parameters
    -
  • data (data object) –

  • -
  • attributes (dictionary) –

    -
    { ‘dx’grid spacing in x dir

    ’dy’ : grid spacing in y dir -‘dz’ : grid spacing in z dir -‘xmin’ : low bound in x dir -‘ymin’ : low bound in y dir -‘zmin’ : low bound in z dir -‘xmax’ : high bound in x dir -‘ymax’ : high bound in y dir -‘zmax’ : high bound in z dir -‘tag’ : block ID }

    -
    -
    +
  • data (Boxkit Data object) –

  • +
  • attributes (Dictionary of attributes) –

    'dx'   : grid spacing x direction
    +'dy'   : grid spacing y direction
    +'dz'   : grid spacing z direction
    +'xmin' : low  bound x direction
    +'ymin' : low  bound y direction
    +'zmin' : low  bound z direction
    +'xmax' : high bound x direction
    +'ymax' : high bound y direction
    +'zmax' : high bound z direction
    +'tag'  : block ID
    +
    +

diff --git a/docs/boxkit.library._data.html b/docs/boxkit.library._data.html index 8da92f62..1db0d9c5 100644 --- a/docs/boxkit.library._data.html +++ b/docs/boxkit.library._data.html @@ -86,7 +86,25 @@
class boxkit.library._data.Data(**attributes)

Bases: boxkit.cbox.lib.library.Data

-

Default class to store data

+

Class to store handles for physical data

+
+
Parameters
+

attributes (Dictionary of attributes) –

'nblocks'   : total number of blocks,
+'nxb'       : number of grid points per block x direction,
+'nyb'       : number of grid points per block y direction,
+'nzb'       : number of grid points per block z direction,
+'xguard'    : number of guard cells x direction,
+'yguard'    : number of guard cells y direction,
+'zguard'    : number of guard cells z direction,
+'inputfile' : hdf5 inputfile default (None),
+'remotefile': sftp remote file default (None),
+'variables' : dictionary of variables default ({}),
+'storage'   : ('numpy', 'zarr', 'dask', 'pyarrow')
+
+
+

+
+
_create_dask_objects()
diff --git a/docs/searchindex.js b/docs/searchindex.js index 2307ead4..cec340a2 100644 --- a/docs/searchindex.js +++ b/docs/searchindex.js @@ -1 +1 @@ -Search.setIndex({docnames:["README","boxkit","boxkit.api","boxkit.api._create","boxkit.api._mean","boxkit.api._mergeblocks","boxkit.api._read","boxkit.api._regionprops","boxkit.api._resfilter","boxkit.library","boxkit.library._action","boxkit.library._block","boxkit.library._data","boxkit.library._dataset","boxkit.library._execute","boxkit.library._monitor","boxkit.library._region","boxkit.library._resources","boxkit.library._server","boxkit.library._slice","boxkit.library._timer","boxkit.resources","boxkit.resources.read","boxkit.resources.read._flash","boxkit.resources.read._sample","index","tutorials/astrophysics_example_01/astrophysics_example_01","tutorials/pool_boiling_gravity/pool_boiling_gravity"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["README.rst","boxkit.rst","boxkit.api.rst","boxkit.api._create.rst","boxkit.api._mean.rst","boxkit.api._mergeblocks.rst","boxkit.api._read.rst","boxkit.api._regionprops.rst","boxkit.api._resfilter.rst","boxkit.library.rst","boxkit.library._action.rst","boxkit.library._block.rst","boxkit.library._data.rst","boxkit.library._dataset.rst","boxkit.library._execute.rst","boxkit.library._monitor.rst","boxkit.library._region.rst","boxkit.library._resources.rst","boxkit.library._server.rst","boxkit.library._slice.rst","boxkit.library._timer.rst","boxkit.resources.rst","boxkit.resources.read.rst","boxkit.resources.read._flash.rst","boxkit.resources.read._sample.rst","index.rst","tutorials/astrophysics_example_01/astrophysics_example_01.rst","tutorials/pool_boiling_gravity/pool_boiling_gravity.rst"],objects:{"":[[1,0,0,"-","boxkit"]],"boxkit.api":[[3,0,0,"-","_create"],[4,0,0,"-","_mean"],[5,0,0,"-","_mergeblocks"],[6,0,0,"-","_read"],[7,0,0,"-","_regionprops"],[8,0,0,"-","_resfilter"]],"boxkit.api._create":[[3,1,1,"","create_dataset"],[3,1,1,"","create_region"],[3,1,1,"","create_slice"]],"boxkit.api._mean":[[4,1,1,"","mean_blk_list"],[4,1,1,"","mean_temporal"]],"boxkit.api._mergeblocks":[[5,1,1,"","mergeblocks"]],"boxkit.api._read":[[6,1,1,"","read_dataset"]],"boxkit.api._regionprops":[[7,1,1,"","regionprops"]],"boxkit.api._resfilter":[[8,1,1,"","resfilter"]],"boxkit.library":[[10,0,0,"-","_action"],[11,0,0,"-","_block"],[12,0,0,"-","_data"],[13,0,0,"-","_dataset"],[14,0,0,"-","_execute"],[15,0,0,"-","_monitor"],[16,0,0,"-","_region"],[17,0,0,"-","_resources"],[18,0,0,"-","_server"],[19,0,0,"-","_slice"],[20,0,0,"-","_timer"]],"boxkit.library._action":[[10,2,1,"","Action"]],"boxkit.library._action.Action":[[10,3,1,"","chk_obj_list"],[10,3,1,"","copy"],[10,3,1,"","execute"],[10,3,1,"","toparg"],[10,4,1,"","type_"]],"boxkit.library._block":[[11,2,1,"","Block"]],"boxkit.library._block.Block":[[11,3,1,"","_map_data"],[11,3,1,"","_set_attributes"],[11,3,1,"","_set_neighdict_2d"],[11,3,1,"","_set_neighdict_3d"],[11,3,1,"","exchange_neighdata"],[11,3,1,"","get_center_loc"],[11,3,1,"","get_node_loc"],[11,3,1,"","get_relative_loc"],[11,3,1,"","neighdata"],[11,3,1,"","read_neighbuffer"],[11,4,1,"","type_"],[11,3,1,"","write_neighbuffer"],[11,3,1,"","xrange"],[11,3,1,"","yrange"],[11,3,1,"","zrange"]],"boxkit.library._data":[[12,2,1,"","Data"]],"boxkit.library._data.Data":[[12,3,1,"","_create_dask_objects"],[12,3,1,"","_create_h5_datasets"],[12,3,1,"","_create_numpy_arrays"],[12,3,1,"","_create_numpy_memmap"],[12,3,1,"","_create_pyarrow_objects"],[12,3,1,"","_create_zarr_objects"],[12,3,1,"","_set_attributes"],[12,3,1,"","_set_data"],[12,3,1,"","addvar"],[12,3,1,"","delvar"],[12,3,1,"","purge"],[12,4,1,"","type_"]],"boxkit.library._dataset":[[13,2,1,"","Dataset"]],"boxkit.library._dataset.Dataset":[[13,3,1,"","_map_blocklist"],[13,3,1,"","_map_data"],[13,3,1,"","addvar"],[13,3,1,"","clone"],[13,3,1,"","delvar"],[13,5,1,"","dtype"],[13,3,1,"","halo_exchange"],[13,5,1,"","nblocks"],[13,5,1,"","nxb"],[13,5,1,"","nyb"],[13,5,1,"","nzb"],[13,3,1,"","purge"],[13,5,1,"","source"],[13,4,1,"","type_"],[13,5,1,"","varlist"],[13,5,1,"","xguard"],[13,5,1,"","yguard"],[13,5,1,"","zguard"]],"boxkit.library._execute":[[14,1,1,"","exectask"],[14,1,1,"","execute_cbox"],[14,1,1,"","execute_dask"],[14,1,1,"","execute_loky"],[14,1,1,"","execute_serial"]],"boxkit.library._monitor":[[15,2,1,"","Monitor"]],"boxkit.library._monitor.Monitor":[[15,3,1,"","finish"],[15,3,1,"","update"]],"boxkit.library._region":[[16,2,1,"","Region"]],"boxkit.library._region.Region":[[16,3,1,"","_in_collision"],[16,3,1,"","_map_blocklist"],[16,3,1,"","_set_attributes"],[16,3,1,"","_update_bounds"],[16,4,1,"","type_"]],"boxkit.library._resources":[[17,2,1,"","Resources"]],"boxkit.library._resources.Resources":[[17,3,1,"","display"]],"boxkit.library._server":[[18,2,1,"","Server"]],"boxkit.library._server.Server":[[18,3,1,"","_set_attributes"],[18,3,1,"","close"],[18,3,1,"","connect"]],"boxkit.library._slice":[[19,2,1,"","Slice"]],"boxkit.library._slice.Slice":[[19,4,1,"","type_"]],"boxkit.library._timer":[[20,2,1,"","Timer"]],"boxkit.resources":[[22,0,0,"-","read"]],"boxkit.resources.read":[[23,0,0,"-","_flash"],[24,0,0,"-","_sample"]],"boxkit.resources.read._flash":[[23,1,1,"","read_flash"]],"boxkit.resources.read._sample":[[24,1,1,"","read_test_sample"]],boxkit:[[2,0,0,"-","api"],[9,0,0,"-","library"],[21,0,0,"-","resources"]]},objnames:{"0":["py","module","Python module"],"1":["py","function","Python function"],"2":["py","class","Python class"],"3":["py","method","Python method"],"4":["py","attribute","Python attribute"],"5":["py","property","Python property"]},objtypes:{"0":"py:module","1":"py:function","2":"py:class","3":"py:method","4":"py:attribute","5":"py:property"},terms:{"0":[0,26,27],"06":0,"1":[0,4,5,6,7,8,10,13,14,15,27],"10":0,"10000000000":26,"14":27,"1666666624":26,"1e10":26,"2":27,"2023":0,"25":0,"25m_3d_32km_hdf5_plt_cnt_1000":26,"4":0,"4x4":0,"5":0,"50":27,"5281":0,"6":[0,27],"8":[0,26],"8063195":0,"8x8x8":26,"90200":26,"break":27,"class":[0,10,11,12,13,15,16,17,18,19,20,26],"default":[6,8,10,11,12,13,24],"export":0,"float":[12,13],"function":[0,14,27],"import":[0,26,27],"new":[0,12,27],"return":[3,6,7,8,11,17,23,24],"static":[10,11],"true":[14,27],For:0,In:[26,27],The:[0,26,27],There:0,With:0,_action:[1,9],_block:[1,9],_creat:[1,2],_create_dask_object:12,_create_h5_dataset:12,_create_numpy_arrai:12,_create_numpy_memmap:12,_create_pyarrow_object:12,_create_zarr_object:12,_data:[1,9],_dataset:[0,1,9,26],_execut:[1,9],_flash:[21,22],_in_collis:16,_map_blocklist:[13,16],_map_data:[11,13],_mean:[1,2],_mergeblock:[1,2],_monitor:[1,9],_read:[1,2],_region:[1,9,19],_regionprop:[1,2],_resfilt:[1,2],_resourc:[1,9],_sampl:[21,22],_server:[1,9],_set_attribut:[11,12,16,18],_set_data:12,_set_neighdict_2d:11,_set_neighdict_3d:11,_slice:[1,9,26],_timer:[1,9],_update_bound:16,ab:26,about:0,abov:27,acadia:0,access:[0,18],accompani:0,accomplish:0,across:[0,4],act:0,action:[0,10,14],actual:14,ad:0,adapt:0,add:[0,12],addit:[0,14],addvar:[0,12,13],after:[0,26],akash:[0,27],akash_dhruv_2023_8063195:0,akashdhruv:0,all:[12,13,27],along:[26,27],also:0,amr:[0,8],an:[0,10],analysi:0,apach:0,api:[1,13],appli:[14,27],applic:0,ar:[0,26],architectur:0,arg:[0,10,14,18],argmin:26,argument:[0,10,14],arrai:[12,27],arrang:0,arrow:0,ask:0,astrophys:0,attribut:[0,3,11,12,14,16,18,19,23,24],author:0,auto:[5,13],avail:[0,17],availab:0,averag:4,ax:27,backend:[0,4,5,6,7,8,10,13,14,27],bar:14,base:[10,11,12,13,15,16,17,18,19,20],batch:[5,13],begin:27,below:0,binari:7,blk_list:4,block:[0,11,16,23,24,26,27],block_attribut:[23,24],blocklist:[0,13,16,19,26,27],boil:[0,6],bold:27,boost:15,bound:[0,3,11,16,26],box:27,boxkit:[26,27],boxlib:14,boxmem:27,branch:0,bubbl:[7,27],buffer:11,bug:0,build:[0,8],c12:26,c:0,call:[0,10,14,27],can:[0,26,27],cbox:[0,12],center:[11,26,27],check:[10,16],chk_obj_list:10,chunk:27,citat:25,clean:[12,13],click:0,client:18,clim:26,clone:13,close:[12,13,18],closest:26,cluster:0,code:0,collis:16,colorbar:26,com:0,command:0,compar:27,complex:27,comput:[0,4],configur:[0,27],connect:18,consid:27,conta:[23,24],contain:[0,6,7,14,23,24,26,27],contigu:27,contour:[26,27],contourf:26,contribut:25,control:27,convert:0,copi:10,coresspod:0,correspondingli:0,cpp_compil:0,cr48:26,cr56:26,creat:[0,3,6,12,26,27],create_dataset:[0,3],create_region:3,create_slic:[3,26],custom:[0,10],cvar:26,cxx:0,dask:[0,6,12,14],data:[0,7,11,12,13,18,23,24,26],data_attribut:[23,24],dataset:[0,3,4,5,6,7,8,12,13,23,24,26,27],dataset_3d:27,dataset_block:27,dataset_lowg:27,dataset_oneblk:27,datashar:27,debug:0,decor:0,def:[0,14,27],defin:27,delet:12,delta:11,delvar:[12,13],den:26,deploi:0,deriv:19,dervi:15,design:0,desir:[0,27],detail:0,develop:0,dhruv:0,dictionari:[3,6,11,12,17,23,24],differ:[0,27],dimension:[0,26,27],dir:11,directli:0,directori:0,disk:[0,6],displai:17,distribut:0,document:0,doe:0,doi:0,domain3d:27,dset:[0,26],dset_slic:26,dtbn:26,dtype:[0,12,13,26],due:27,dure:0,dx:11,dy:11,dz:11,each:[0,26,27],earth:27,easili:0,effect:0,effici:0,empti:12,enabl:0,encourag:0,entr:26,enuc:26,environ:[0,26,27],exampl:0,exchang:[11,13],exchange_neighdata:11,exectask:14,execut:[0,10],execute_cbox:14,execute_dask:14,execute_loki:14,execute_seri:14,executetask:14,exist:0,extract:26,face:11,fals:[4,5,6,7,8,10,13,14],famili:27,fe52:26,fe54:26,fe56:26,featur:0,fidel:0,figsiz:27,figur:[26,27],file:[0,3,6,23,24,26],filenam:[6,23,24],fill:0,filter:8,filtered_dataset:8,finish:15,first:[0,27],flag:[8,14],flash:[0,6,23,26],flashx:0,follow:[0,14,27],font:27,force_memmap:6,fork:0,form:0,format:6,friendli:0,from:[0,3,6,8,10,11,23,24,26],full:0,gamc:26,get:[10,11,26],get_center_loc:11,get_node_loc:11,get_relative_loc:11,git:0,github:0,gpot:26,graviti:0,grid:[11,26,27],guard:[0,26],guid:0,h5:12,h5pickl:26,h5py:0,halo:[11,13],halo_exchang:13,hardwar:0,hdf5:[0,26],heater2d:27,heater:[0,6,27],help:25,here:0,high:[0,3,11],host:0,how:[0,27],http:0,id:11,identifi:6,imin:11,implemen:[4,7],implemenet:[3,5,6,8,13],implement:[10,11,12,14,16,18,19,20],implementaion:15,includ:[0,26],independ:0,index:[0,25,26],indic:[8,26],individu:[0,14],info:13,inform:[0,11,26],initi:[9,11,13,16,21,26],initializ:22,ins_pool_boiling_hdf5_0030:27,ins_pool_boiling_heater_hdf5_0030:27,insid:0,instal:[25,26],instruct:0,interfac:0,interfer:0,intern:27,intial:[1,11,12,16,18],invovl:27,io:0,iplu:11,ipython:0,issu:0,iter:15,its:0,jarvi:27,jmin:11,joblib:[0,14],jplu:11,jun:0,june:0,kei:[0,7,12,26],kwarg:[10,14,18],labelweight:27,layout:27,learn:[0,27],let:27,level:[1,5,7,8,27],leverag:0,lib:12,librari:[0,1,8,26,27],lightweight:0,like:0,line:27,list:[0,4,7,8,14,26,27],list_of_block:0,listprop:7,local:0,locat:[0,11,26,27],loki:[14,27],look:27,loop:[0,26,27],low:[3,11,27],lowg:27,lsetkei:7,mac:0,machin:0,mai:0,manag:[0,17],map:12,match:10,math:27,matplotlib:[26,27],max:26,max_cval:26,max_val:11,mayb:0,mean_blk_list:4,mean_tempor:4,measur:[4,7],memmap:[0,13],memori:[0,12],merg:27,mergeblock:[5,27],merger:0,mesh:[0,26,27],meshgrid:[26,27],method:[0,3,4,5,6,7,8,10,11,12,13,16,18,27],min:26,min_cval:26,min_val:11,mode:[0,14,26],modifi:0,modul:[1,2,9,21,22,25],monitor:[4,5,7,8,10,13,14,15,27],month:0,morton:0,msg:15,multinod:0,multipl:27,multiprocess:0,name:[6,20,23,24,26],nblock:[0,13,26],nblocki:0,nblockx:0,necessari:[0,27],need:0,neighbor:11,neighdata:11,neighkei:11,next:[0,26,27],ni56:26,non:0,none:[0,3,6,8,10,11,14],note:0,notebook:0,now:26,nthread:[4,5,6,7,8,10,13,14,27],num_point:11,num_proc:0,numa:0,number:[8,14],numpi:[0,12,13,26,27],nxb:[0,13],nyb:[0,13],nzb:13,o16:26,obj_list:[10,14],object:[0,3,6,7,10,11,12,13,14,15,16,17,20,26,27],offer:0,offset:11,onc:0,oneblk:27,onli:14,oper:[0,8,14,27],operation_on_block:0,opticalflow:0,optim:17,option:[0,6],order:[0,11],org:0,origin:11,output:[0,23,26],over:[0,26,27],overview:25,packag:[0,25],page:[0,25],parallel:[0,14,27],parallel_backend:0,parallel_obj:[10,14],paramet:[3,6,7,8,11,14,23,24],paramiko:18,pars:26,pass:[0,14],path_to_hdf5_fil:0,perform:[0,11,13,26,27],phi:27,pip3:0,pip:0,place:0,plane:[26,27],platform:0,pleas:0,plot:[26,27],plot_phi:27,plot_phi_3d:27,point:0,pool:0,post:0,pre:[0,26],print:[0,26],privat:[11,12,13,16,18],probe:26,process:[0,8,27],progress:14,project:0,properti:[7,11,13],provid:0,pseudo:8,publish:0,pull:0,purg:[12,13,27],purgeflag:[12,13],py:[0,6],pyarrow:[0,6,12],pypi:0,pyplot:[26,27],python3:0,python:[0,11,15,26],pytorch:0,question:0,r:26,rc:27,read:[0,1,6,11,21,26,27],read_dataset:[0,6,26,27],read_flash:23,read_neighbuff:11,read_test_sampl:24,reduc:4,refer:[0,6,27],refin:0,region:[3,16,19,26],regionprop:7,regular:0,releas:0,relev:[14,27],reli:0,remot:18,report:0,repos:0,repositori:0,repres:27,represent:[0,12],request:0,requir:26,resfilt:8,reshap:[5,8],reshaped_dataset:27,resid:0,resolv:27,resourc:[0,1,17],respect:0,result:27,revert:14,right:26,root:0,run:8,s32:26,s:0,same:27,sampl:[6,24,27],sample_s:4,scale:0,schema:0,scienc:0,scikit:0,script:0,search:25,sedona:0,see:[0,6,27],serial:[4,5,6,7,8,10,13,14],serif:27,server:[6,18,23,24],set:[7,12,27],setup:0,shape:[0,26],should:0,show:[14,27],si28:26,signatur:10,similar:[0,27],simpl:26,simul:[0,26,27],singl:0,site:0,situat:0,size:[0,26,27],slice:[3,19,26,27],softwar:0,soln:0,solut:[0,27],sourc:[0,6,13,26],space:[0,11,27],spatial:0,speed:27,ssh:0,sshclient:18,stabl:0,start:27,statement:26,station:27,statist:0,statu:17,step:26,storag:[3,6,13],store:[0,12,13],string:[6,23,24],structur:[0,27],studi:27,submodul:[1,21],subpackag:25,suppli:27,support:25,surfac:27,system:0,tag:11,take:[0,14],target:[0,10,14],temp:26,tensor:12,test:[6,24,25],text:27,textemdash:0,thi:[0,8,26,27],thread:[8,27],three:[26,27],through:0,tight_layout:27,timer:[8,20],titl:[0,27],titleweight:27,tool:0,top:[1,10],toparg:10,tupl:14,tutori:[25,27],two:[0,27],type:[0,3,6,7,8,10,26],type_:[10,11,12,13,16,19],typic:0,ubuntu:0,ug:8,under:0,uniform:0,uninstal:0,unit:[9,22],up:[12,13],updat:[0,15,16],upgrad:0,url:0,us:[0,14,16,17,26,27],usag:[17,25],user:[0,27],usetex:27,util:[10,14,18],valu:26,variabl:[0,8,12,26,27],variou:0,varkei:[4,11,12,13],varlist:[4,5,8,13],veli:26,velx:26,velz:26,version:0,want:0,we:[26,27],websit:0,weight:27,when:0,where:[0,27],which:0,work:26,workflow:0,wrapper:[0,14],write:11,write_neighbuff:11,x:[0,3,11,26,27],xguard:13,xlim:27,xmax:[0,3,11,27],xmesh:[26,27],xmin:[0,3,11,27],xplu:11,xrang:[11,26,27],y:[0,3,11,26,27],yaml:0,ye:26,year:0,yguard:13,yindex:26,ylim:27,yloc:26,ymax:[0,3,11,26,27],ymesh:27,ymin:[0,3,11,26,27],yplu:11,yrang:[11,26,27],z:[0,3,11,26,27],zarr:[0,12],zenodo:0,zguard:13,zmax:[3,11,27],zmesh:[26,27],zmin:[3,11,27],zplu:11,zrang:[11,27]},titles:[" BoxKit","boxkit package","boxkit.api package","boxkit.api._create module","boxkit.api._mean module","boxkit.api._mergeblocks module","boxkit.api._read module","boxkit.api._regionprops module","boxkit.api._resfilter module","boxkit.library package","boxkit.library._action module","boxkit.library._block module","boxkit.library._data module","boxkit.library._dataset module","boxkit.library._execute module","boxkit.library._monitor module","boxkit.library._region module","boxkit.library._resources module","boxkit.library._server module","boxkit.library._slice module","boxkit.library._timer module","boxkit.resources package","boxkit.resources.read package","boxkit.resources.read._flash module","boxkit.resources.read._sample module","Welcome to BoxKit\u2019s documentation!","Astrophysics Example 1","Pool Boiling Gravity"],titleterms:{"0":[],"1":26,"25m_3d_32km_hdf5_plt_cnt_1000":[],"8x8x8":[],"90200":[],"import":[],In:[],The:[],_action:10,_block:11,_creat:3,_data:12,_dataset:13,_execut:14,_flash:23,_mean:4,_mergeblock:5,_monitor:15,_read:6,_region:16,_regionprop:7,_resfilt:8,_resourc:17,_sampl:24,_server:18,_slice:19,_timer:20,after:[],along:[],api:[2,3,4,5,6,7,8],ar:[],astrophys:26,block:[],boil:27,boxkit:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],can:[],citat:0,contain:[],content:25,contribut:0,creat:[],data:[],dataset:[],dimension:[],document:25,each:[],environ:[],exampl:26,extract:[],file:[],flash:[],from:[],graviti:27,hdf5:[],help:0,icon:0,indic:25,inform:[],instal:0,kei:[],librari:[9,10,11,12,13,14,15,16,17,18,19,20],list:[],locat:[],loop:[],modul:[3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,23,24],next:[],now:[],output:[],over:[],overview:0,packag:[1,2,9,21,22],pars:[],perform:[],pool:27,print:[],probe:[],python:[],read:[22,23,24],requir:[],resourc:[21,22,23,24],right:[],s:25,simpl:[],simul:[],size:[],slice:[],statement:[],step:[],submodul:[2,9,22],subpackag:[1,21],support:0,tabl:25,test:0,thi:[],three:[],tutori:0,us:[],usag:0,variabl:[],we:[],welcom:25,work:[],x:[],y:[]}}) \ No newline at end of file +Search.setIndex({docnames:["README","boxkit","boxkit.api","boxkit.api._create","boxkit.api._mean","boxkit.api._mergeblocks","boxkit.api._read","boxkit.api._regionprops","boxkit.api._resfilter","boxkit.library","boxkit.library._action","boxkit.library._block","boxkit.library._data","boxkit.library._dataset","boxkit.library._execute","boxkit.library._monitor","boxkit.library._region","boxkit.library._resources","boxkit.library._server","boxkit.library._slice","boxkit.library._timer","boxkit.resources","boxkit.resources.read","boxkit.resources.read._flash","boxkit.resources.read._sample","index","tutorials/astrophysics_example_01/astrophysics_example_01","tutorials/pool_boiling_gravity/pool_boiling_gravity"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["README.rst","boxkit.rst","boxkit.api.rst","boxkit.api._create.rst","boxkit.api._mean.rst","boxkit.api._mergeblocks.rst","boxkit.api._read.rst","boxkit.api._regionprops.rst","boxkit.api._resfilter.rst","boxkit.library.rst","boxkit.library._action.rst","boxkit.library._block.rst","boxkit.library._data.rst","boxkit.library._dataset.rst","boxkit.library._execute.rst","boxkit.library._monitor.rst","boxkit.library._region.rst","boxkit.library._resources.rst","boxkit.library._server.rst","boxkit.library._slice.rst","boxkit.library._timer.rst","boxkit.resources.rst","boxkit.resources.read.rst","boxkit.resources.read._flash.rst","boxkit.resources.read._sample.rst","index.rst","tutorials/astrophysics_example_01/astrophysics_example_01.rst","tutorials/pool_boiling_gravity/pool_boiling_gravity.rst"],objects:{"":[[1,0,0,"-","boxkit"]],"boxkit.api":[[3,0,0,"-","_create"],[4,0,0,"-","_mean"],[5,0,0,"-","_mergeblocks"],[6,0,0,"-","_read"],[7,0,0,"-","_regionprops"],[8,0,0,"-","_resfilter"]],"boxkit.api._create":[[3,1,1,"","create_dataset"],[3,1,1,"","create_region"],[3,1,1,"","create_slice"]],"boxkit.api._mean":[[4,1,1,"","mean_blk_list"],[4,1,1,"","mean_temporal"]],"boxkit.api._mergeblocks":[[5,1,1,"","mergeblocks"]],"boxkit.api._read":[[6,1,1,"","read_dataset"]],"boxkit.api._regionprops":[[7,1,1,"","regionprops"]],"boxkit.api._resfilter":[[8,1,1,"","resfilter"]],"boxkit.library":[[10,0,0,"-","_action"],[11,0,0,"-","_block"],[12,0,0,"-","_data"],[13,0,0,"-","_dataset"],[14,0,0,"-","_execute"],[15,0,0,"-","_monitor"],[16,0,0,"-","_region"],[17,0,0,"-","_resources"],[18,0,0,"-","_server"],[19,0,0,"-","_slice"],[20,0,0,"-","_timer"]],"boxkit.library._action":[[10,2,1,"","Action"]],"boxkit.library._action.Action":[[10,3,1,"","chk_obj_list"],[10,3,1,"","copy"],[10,3,1,"","execute"],[10,3,1,"","toparg"],[10,4,1,"","type_"]],"boxkit.library._block":[[11,2,1,"","Block"]],"boxkit.library._block.Block":[[11,3,1,"","_map_data"],[11,3,1,"","_set_attributes"],[11,3,1,"","_set_neighdict_2d"],[11,3,1,"","_set_neighdict_3d"],[11,3,1,"","exchange_neighdata"],[11,3,1,"","get_center_loc"],[11,3,1,"","get_node_loc"],[11,3,1,"","get_relative_loc"],[11,3,1,"","neighdata"],[11,3,1,"","read_neighbuffer"],[11,4,1,"","type_"],[11,3,1,"","write_neighbuffer"],[11,3,1,"","xrange"],[11,3,1,"","yrange"],[11,3,1,"","zrange"]],"boxkit.library._data":[[12,2,1,"","Data"]],"boxkit.library._data.Data":[[12,3,1,"","_create_dask_objects"],[12,3,1,"","_create_h5_datasets"],[12,3,1,"","_create_numpy_arrays"],[12,3,1,"","_create_numpy_memmap"],[12,3,1,"","_create_pyarrow_objects"],[12,3,1,"","_create_zarr_objects"],[12,3,1,"","_set_attributes"],[12,3,1,"","_set_data"],[12,3,1,"","addvar"],[12,3,1,"","delvar"],[12,3,1,"","purge"],[12,4,1,"","type_"]],"boxkit.library._dataset":[[13,2,1,"","Dataset"]],"boxkit.library._dataset.Dataset":[[13,3,1,"","_map_blocklist"],[13,3,1,"","_map_data"],[13,3,1,"","addvar"],[13,3,1,"","clone"],[13,3,1,"","delvar"],[13,5,1,"","dtype"],[13,3,1,"","halo_exchange"],[13,5,1,"","nblocks"],[13,5,1,"","nxb"],[13,5,1,"","nyb"],[13,5,1,"","nzb"],[13,3,1,"","purge"],[13,5,1,"","source"],[13,4,1,"","type_"],[13,5,1,"","varlist"],[13,5,1,"","xguard"],[13,5,1,"","yguard"],[13,5,1,"","zguard"]],"boxkit.library._execute":[[14,1,1,"","exectask"],[14,1,1,"","execute_cbox"],[14,1,1,"","execute_dask"],[14,1,1,"","execute_loky"],[14,1,1,"","execute_serial"]],"boxkit.library._monitor":[[15,2,1,"","Monitor"]],"boxkit.library._monitor.Monitor":[[15,3,1,"","finish"],[15,3,1,"","update"]],"boxkit.library._region":[[16,2,1,"","Region"]],"boxkit.library._region.Region":[[16,3,1,"","_in_collision"],[16,3,1,"","_map_blocklist"],[16,3,1,"","_set_attributes"],[16,3,1,"","_update_bounds"],[16,4,1,"","type_"]],"boxkit.library._resources":[[17,2,1,"","Resources"]],"boxkit.library._resources.Resources":[[17,3,1,"","display"]],"boxkit.library._server":[[18,2,1,"","Server"]],"boxkit.library._server.Server":[[18,3,1,"","_set_attributes"],[18,3,1,"","close"],[18,3,1,"","connect"]],"boxkit.library._slice":[[19,2,1,"","Slice"]],"boxkit.library._slice.Slice":[[19,4,1,"","type_"]],"boxkit.library._timer":[[20,2,1,"","Timer"]],"boxkit.resources":[[22,0,0,"-","read"]],"boxkit.resources.read":[[23,0,0,"-","_flash"],[24,0,0,"-","_sample"]],"boxkit.resources.read._flash":[[23,1,1,"","read_flash"]],"boxkit.resources.read._sample":[[24,1,1,"","read_test_sample"]],boxkit:[[2,0,0,"-","api"],[9,0,0,"-","library"],[21,0,0,"-","resources"]]},objnames:{"0":["py","module","Python module"],"1":["py","function","Python function"],"2":["py","class","Python class"],"3":["py","method","Python method"],"4":["py","attribute","Python attribute"],"5":["py","property","Python property"]},objtypes:{"0":"py:module","1":"py:function","2":"py:class","3":"py:method","4":"py:attribute","5":"py:property"},terms:{"0":[0,26,27],"06":0,"1":[0,4,5,6,7,8,10,13,14,15,27],"10":0,"10000000000":26,"14":27,"1666666624":26,"1e10":26,"2":27,"2023":0,"25":0,"25m_3d_32km_hdf5_plt_cnt_1000":26,"4":0,"4x4":0,"5":0,"50":27,"5281":0,"6":[0,27],"8":[0,26],"8063195":0,"8x8x8":26,"90200":26,"break":27,"class":[0,10,11,12,13,15,16,17,18,19,20,26],"default":[6,8,10,11,12,13,24],"export":0,"float":[12,13],"function":[0,14,27],"import":[0,26,27],"new":[0,12,27],"return":[3,6,7,8,11,17,23,24],"static":[10,11],"true":[14,27],For:0,In:[26,27],The:[0,26,27],There:0,With:0,_action:[1,9],_block:[1,9],_creat:[1,2],_create_dask_object:12,_create_h5_dataset:12,_create_numpy_arrai:12,_create_numpy_memmap:12,_create_pyarrow_object:12,_create_zarr_object:12,_data:[1,9],_dataset:[0,1,9,26],_execut:[1,9],_flash:[21,22],_in_collis:16,_map_blocklist:[13,16],_map_data:[11,13],_mean:[1,2],_mergeblock:[1,2],_monitor:[1,9],_read:[1,2],_region:[1,9,19],_regionprop:[1,2],_resfilt:[1,2],_resourc:[1,9],_sampl:[21,22],_server:[1,9],_set_attribut:[11,12,16,18],_set_data:12,_set_neighdict_2d:11,_set_neighdict_3d:11,_slice:[1,9,26],_timer:[1,9],_update_bound:16,ab:26,about:0,abov:27,acadia:0,access:[0,18],accompani:0,accomplish:0,across:[0,4],act:0,action:[0,10,14],actual:14,ad:0,adapt:0,add:[0,12],addit:[0,14],addvar:[0,12,13],after:[0,26],akash:[0,27],akash_dhruv_2023_8063195:0,akashdhruv:0,all:[12,13,27],along:[26,27],also:0,amr:[0,8],an:[0,10],analysi:0,apach:0,api:[1,13],appli:[14,27],applic:0,ar:[0,26],architectur:0,arg:[0,10,14,18],argmin:26,argument:[0,10,14],arrai:[12,27],arrang:0,arrow:0,ask:0,astrophys:0,attribut:[0,3,11,12,14,16,18,19,23,24],author:0,auto:[5,13],avail:[0,17],availab:0,averag:4,ax:27,backend:[0,4,5,6,7,8,10,13,14,27],bar:14,base:[10,11,12,13,15,16,17,18,19,20],batch:[5,13],begin:27,below:0,binari:7,blk_list:4,block:[0,11,12,16,23,24,26,27],block_attribut:[23,24],blocklist:[0,13,16,19,26,27],boil:[0,6],bold:27,boost:15,bound:[0,3,11,16,26],box:27,boxkit:[26,27],boxlib:14,boxmem:27,branch:0,bubbl:[7,27],buffer:11,bug:0,build:[0,8],c12:26,c:0,call:[0,10,14,27],can:[0,26,27],cbox:[0,12],cell:12,center:[11,26,27],check:[10,16],chk_obj_list:10,chunk:27,citat:25,clean:[12,13],click:0,client:18,clim:26,clone:13,close:[12,13,18],closest:26,cluster:0,code:0,collis:16,colorbar:26,com:0,command:0,compar:27,complex:27,comput:[0,4],configur:[0,27],connect:18,consid:27,conta:[23,24],contain:[0,6,7,14,23,24,26,27],contigu:27,contour:[26,27],contourf:26,contribut:25,control:27,convert:0,copi:10,coresspod:0,correspondingli:0,cpp_compil:0,cr48:26,cr56:26,creat:[0,3,6,12,26,27],create_dataset:[0,3],create_region:3,create_slic:[3,26],custom:[0,10],cvar:26,cxx:0,dask:[0,6,12,14],data:[0,7,11,12,13,18,23,24,26],data_attribut:[23,24],dataset:[0,3,4,5,6,7,8,12,13,23,24,26,27],dataset_3d:27,dataset_block:27,dataset_lowg:27,dataset_oneblk:27,datashar:27,debug:0,decor:0,def:[0,14,27],defin:27,delet:12,delta:11,delvar:[12,13],den:26,deploi:0,deriv:19,dervi:15,design:0,desir:[0,27],detail:0,develop:0,dhruv:0,dictionari:[3,6,11,12,17,23,24],differ:[0,27],dimension:[0,26,27],dir:[],direct:[11,12],directli:0,directori:0,disk:[0,6],displai:17,distribut:0,document:0,doe:0,doi:0,domain3d:27,dset:[0,26],dset_slic:26,dtbn:26,dtype:[0,12,13,26],due:27,dure:0,dx:11,dy:11,dz:11,each:[0,26,27],earth:27,easili:0,effect:0,effici:0,empti:12,enabl:0,encourag:0,entr:26,enuc:26,environ:[0,26,27],exampl:0,exchang:[11,13],exchange_neighdata:11,exectask:14,execut:[0,10],execute_cbox:14,execute_dask:14,execute_loki:14,execute_seri:14,executetask:14,exist:0,extract:26,face:11,fals:[4,5,6,7,8,10,13,14],famili:27,fe52:26,fe54:26,fe56:26,featur:0,fidel:0,figsiz:27,figur:[26,27],file:[0,3,6,12,23,24,26],filenam:[6,23,24],fill:0,filter:8,filtered_dataset:8,finish:15,first:[0,27],flag:[8,14],flash:[0,6,23,26],flashx:0,follow:[0,14,27],font:27,force_memmap:6,fork:0,form:0,format:6,friendli:0,from:[0,3,6,8,10,11,23,24,26],full:0,gamc:26,get:[10,11,26],get_center_loc:11,get_node_loc:11,get_relative_loc:11,git:0,github:0,gpot:26,graviti:0,grid:[11,12,26,27],guard:[0,12,26],guid:0,h5:12,h5pickl:26,h5py:0,halo:[11,13],halo_exchang:13,handl:12,hardwar:0,hdf5:[0,12,26],heater2d:27,heater:[0,6,27],help:25,here:0,high:[0,3,11],highlight:[],host:0,how:[0,27],http:0,id:11,identifi:6,imin:11,implemen:[4,7],implemenet:[3,5,6,8,13],implement:[10,11,12,14,16,18,19,20],implementaion:15,includ:[0,26],independ:0,index:[0,25,26],indic:[8,26],individu:[0,14],info:13,inform:[0,11,26],initi:[9,11,13,16,21,26],initializ:22,inputfil:12,ins_pool_boiling_hdf5_0030:27,ins_pool_boiling_heater_hdf5_0030:27,insid:0,instal:[25,26],instruct:0,interfac:0,interfer:0,intern:27,intial:[1,11,12,16,18],invovl:27,io:0,iplu:11,ipython:0,issu:0,iter:15,its:0,jarvi:27,jmin:11,joblib:[0,14],jplu:11,jun:0,june:0,kei:[0,7,12,26],kwarg:[10,14,18],labelweight:27,layout:27,learn:[0,27],let:27,level:[1,5,7,8,27],leverag:0,lib:12,librari:[0,1,8,26,27],lightweight:0,like:0,line:27,list:[0,4,7,8,14,26,27],list_of_block:0,listprop:7,local:0,locat:[0,11,26,27],loki:[14,27],look:27,loop:[0,26,27],low:[3,11,27],lowg:27,lsetkei:7,mac:0,machin:0,mai:0,manag:[0,17],map:12,match:10,math:27,matplotlib:[26,27],max:26,max_cval:26,max_val:11,mayb:0,mean_blk_list:4,mean_tempor:4,measur:[4,7],memmap:[0,13],memori:[0,12],merg:27,mergeblock:[5,27],merger:0,mesh:[0,26,27],meshgrid:[26,27],metadata:11,method:[0,3,4,5,6,7,8,10,11,12,13,16,18,27],min:26,min_cval:26,min_val:11,mode:[0,14,26],modifi:0,modul:[1,2,9,21,22,25],monitor:[4,5,7,8,10,13,14,15,27],month:0,morton:0,msg:15,multinod:0,multipl:27,multiprocess:0,name:[6,20,23,24,26],nblock:[0,12,13,26],nblocki:0,nblockx:0,necessari:[0,27],need:0,neighbor:11,neighdata:11,neighkei:11,next:[0,26,27],ni56:26,non:0,none:[0,3,6,8,10,11,12,14],note:0,notebook:0,now:26,nthread:[4,5,6,7,8,10,13,14,27],num_point:11,num_proc:0,numa:0,number:[8,12,14],numpi:[0,12,13,26,27],nxb:[0,12,13],nyb:[0,12,13],nzb:[12,13],o16:26,obj_list:[10,14],object:[0,3,6,7,10,11,12,13,14,15,16,17,20,26,27],offer:0,offset:11,onc:0,oneblk:27,onli:14,oper:[0,8,14,27],operation_on_block:0,opticalflow:0,optim:17,option:[0,6],order:[0,11],org:0,origin:11,output:[0,23,26],over:[0,26,27],overview:25,packag:[0,25],page:[0,25],parallel:[0,14,27],parallel_backend:0,parallel_obj:[10,14],paramet:[3,6,7,8,11,12,14,23,24],paramiko:18,pars:26,pass:[0,14],path_to_hdf5_fil:0,per:12,perform:[0,11,13,26,27],phi:27,physic:12,pip3:0,pip:0,place:0,plane:[26,27],platform:0,pleas:0,plot:[26,27],plot_phi:27,plot_phi_3d:27,point:[0,12],pool:0,post:0,pre:[0,26],print:[0,26],privat:[11,12,13,16,18],probe:26,process:[0,8,27],progress:14,project:0,properti:[7,11,13],provid:0,pseudo:8,publish:0,pull:0,purg:[12,13,27],purgeflag:[12,13],py:[0,6],pyarrow:[0,6,12],pypi:0,pyplot:[26,27],python3:0,python:[0,11,15,26],pytorch:0,question:0,r:26,rc:27,read:[0,1,6,11,21,26,27],read_dataset:[0,6,26,27],read_flash:23,read_neighbuff:11,read_test_sampl:24,reduc:4,refer:[0,6,27],refin:0,region:[3,16,19,26],regionprop:7,regular:0,releas:0,relev:[14,27],reli:0,remot:[12,18],remotefil:12,report:0,repos:0,repositori:0,repres:27,represent:[0,12],request:0,requir:26,resfilt:8,reshap:[5,8],reshaped_dataset:27,resid:0,resolv:27,resourc:[0,1,17],respect:0,result:27,revert:14,right:26,root:0,run:8,s32:26,s:0,same:27,sampl:[6,24,27],sample_s:4,scale:0,schema:0,scienc:0,scikit:0,script:0,search:25,sedona:0,see:[0,6,27],serial:[4,5,6,7,8,10,13,14],serif:27,server:[6,18,23,24],set:[7,12,27],setup:0,sftp:12,shape:[0,26],should:0,show:[14,27],si28:26,signatur:10,similar:[0,27],simpl:26,simul:[0,26,27],singl:0,site:0,situat:0,size:[0,26,27],slice:[3,19,26,27],softwar:0,soln:0,solut:[0,27],sourc:[0,6,13,26],space:[0,11,27],spatial:0,speed:27,ssh:0,sshclient:18,stabl:0,start:27,statement:26,station:27,statist:0,statu:17,step:26,storag:[3,6,12,13],store:[0,11,12,13],string:[6,23,24],structur:[0,27],studi:27,submodul:[1,21],subpackag:25,suppli:27,support:25,surfac:27,system:0,tag:11,take:[0,14],target:[0,10,14],temp:26,tensor:12,test:[6,24,25],text:27,textemdash:0,thi:[0,8,26,27],thread:[8,27],three:[26,27],through:0,tight_layout:27,timer:[8,20],titl:[0,27],titleweight:27,tool:0,top:[1,10],toparg:10,total:12,tupl:14,tutori:[25,27],two:[0,27],type:[0,3,6,7,8,10,26],type_:[10,11,12,13,16,19],typic:0,ubuntu:0,ug:8,under:0,uniform:0,uninstal:0,unit:[9,22],up:[12,13],updat:[0,15,16],upgrad:0,url:0,us:[0,14,16,17,26,27],usag:[17,25],user:[0,27],usetex:27,util:[10,14,18],valu:26,variabl:[0,8,12,26,27],variou:0,varkei:[4,11,12,13],varlist:[4,5,8,13],veli:26,velx:26,velz:26,version:0,want:0,we:[26,27],websit:0,weight:27,when:0,where:[0,27],which:0,work:26,workflow:0,wrapper:[0,14],write:11,write_neighbuff:11,x:[0,3,11,12,26,27],xguard:[12,13],xlim:27,xmax:[0,3,11,27],xmesh:[26,27],xmin:[0,3,11,27],xplu:11,xrang:[11,26,27],y:[0,3,11,12,26,27],yaml:0,ye:26,year:0,yguard:[12,13],yindex:26,ylim:27,yloc:26,ymax:[0,3,11,26,27],ymesh:27,ymin:[0,3,11,26,27],yplu:11,yrang:[11,26,27],z:[0,3,11,12,26,27],zarr:[0,12],zenodo:0,zguard:[12,13],zmax:[3,11,27],zmesh:[26,27],zmin:[3,11,27],zplu:11,zrang:[11,27]},titles:[" BoxKit","boxkit package","boxkit.api package","boxkit.api._create module","boxkit.api._mean module","boxkit.api._mergeblocks module","boxkit.api._read module","boxkit.api._regionprops module","boxkit.api._resfilter module","boxkit.library package","boxkit.library._action module","boxkit.library._block module","boxkit.library._data module","boxkit.library._dataset module","boxkit.library._execute module","boxkit.library._monitor module","boxkit.library._region module","boxkit.library._resources module","boxkit.library._server module","boxkit.library._slice module","boxkit.library._timer module","boxkit.resources package","boxkit.resources.read package","boxkit.resources.read._flash module","boxkit.resources.read._sample module","Welcome to BoxKit\u2019s documentation!","Astrophysics Example 1","Pool Boiling Gravity"],titleterms:{"0":[],"1":26,"25m_3d_32km_hdf5_plt_cnt_1000":[],"8x8x8":[],"90200":[],"import":[],In:[],The:[],_action:10,_block:11,_creat:3,_data:12,_dataset:13,_execut:14,_flash:23,_mean:4,_mergeblock:5,_monitor:15,_read:6,_region:16,_regionprop:7,_resfilt:8,_resourc:17,_sampl:24,_server:18,_slice:19,_timer:20,after:[],along:[],api:[2,3,4,5,6,7,8],ar:[],astrophys:26,block:[],boil:27,boxkit:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],can:[],citat:0,contain:[],content:25,contribut:0,creat:[],data:[],dataset:[],dimension:[],document:25,each:[],environ:[],exampl:26,extract:[],file:[],flash:[],from:[],graviti:27,hdf5:[],help:0,icon:0,indic:25,inform:[],instal:0,kei:[],librari:[9,10,11,12,13,14,15,16,17,18,19,20],list:[],locat:[],loop:[],modul:[3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,23,24],next:[],now:[],output:[],over:[],overview:0,packag:[1,2,9,21,22],pars:[],perform:[],pool:27,print:[],probe:[],python:[],read:[22,23,24],requir:[],resourc:[21,22,23,24],right:[],s:25,simpl:[],simul:[],size:[],slice:[],statement:[],step:[],submodul:[2,9,22],subpackag:[1,21],support:0,tabl:25,test:0,thi:[],three:[],tutori:0,us:[],usag:0,variabl:[],we:[],welcom:25,work:[],x:[],y:[]}}) \ No newline at end of file diff --git a/paper/paper.md b/paper/paper.md index e7cdf9a6..2280adc0 100644 --- a/paper/paper.md +++ b/paper/paper.md @@ -120,7 +120,9 @@ packages available in Python shown by dotted lines in \autoref{fig:workflow}. # Acknowledgements -We acknowledge contributions from Laboratory Directed Research and Development -(LDRD) program supported by Argonne National Laboratory [@argonne]. +This material is based upon work supported by Laboratory Directed Research +and Development (LDRD) funding from Argonne National Laboratory, provided by +the Director, Office of Science, of the U.S. Department of Energy under Contract +No. DE-AC02-06CH11357. # References diff --git a/tests/sedona/__main__.py b/tests/sedona/__main__.py index b0b86937..6c2abc99 100644 --- a/tests/sedona/__main__.py +++ b/tests/sedona/__main__.py @@ -5,7 +5,7 @@ def main(): - tests = ["boiling", "heater", "application"] + tests = ["boiling", "heater", "application", "astrophysics"] suite = unittest.TestSuite() diff --git a/tests/sedona/astrophysics.py b/tests/sedona/astrophysics.py new file mode 100644 index 00000000..1f71a24f --- /dev/null +++ b/tests/sedona/astrophysics.py @@ -0,0 +1,72 @@ +"""Tests for `boxkit/api`.""" + +import os +import time +import unittest +import pymorton +import numpy +import boxkit +from boxkit.library import Monitor, Timer + + +class TestAstrophysics(unittest.TestCase): + """boxkit unit test for 3D astrophysics data""" + + def setUp(self): + """ + Setup test parameters + + timestart : tag start time + basedir : base directory of the input data + filetags : list of file tags + prefix : prefix for input file + filenames : list of filenames generated from basedir, prefix and filetags + + """ + print( + f"\n-------------------------Running: {self.id()}-------------------------\n" + ) + self.timer = Timer(self.id()) + + basedir = ( + os.getenv("HOME") + "/Box/Jarvis-DataShare/Bubble-Box-Sample/astrophysics/" + ) + filetags = [1000] + prefix = "25m_3d_32km_hdf5_plt_cnt_" + self.filenames = [ + "".join([basedir, prefix, str(filetag).zfill(4)]) for filetag in filetags + ] + + # def test_read_nthreads_4_3D(self): + # """ + # Test read dataset with 4 threads + # """ + # dataframes = [ + # boxkit.read_dataset( + # filename, source="flash", nthreads=4, backend="loky", monitor=True + # ) + # for filename in self.filenames + # ] + # for dataset in dataframes: + # dataset.purge() + + def test_read_nthreads_12_3D(self): + """ + Test read dataset with 12 threads + """ + dataframes = [ + boxkit.read_dataset( + filename, source="flash", nthreads=12, backend="loky", monitor=True + ) + for filename in self.filenames + ] + for dataset in dataframes: + dataset.purge() + + def tearDown(self): + """Clean up and timing""" + del self.timer + + +if __name__ == "__main__": + unittest.main()