Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8114077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:02:31+00:00 2026-06-06T03:02:31+00:00

BACKGROUND: I am working with large geometries that will be meshed or broken down

  • 0

BACKGROUND:

I am working with large geometries that will be meshed or broken down into smaller parts and then regrouped. So, for instance, if a block was broken into 16 pieces, it might be reorganized into 4 “Patches” with 4 pieces or elements each. After this process, I still need to keep track of the elements. I assigned the patchIndex (I have a list of the number of patches) as the “key” that will give back the all the elements in the patch and their 1) local index (the index of the element within the patch) and their 2) global index (the index of the element within the entire geometry).

PROBLEM:

How on earth can I get this information into an HDF5 file?

MY CODE:

Here is how I am setting up my dictionary if that is helpful to know:

def readAscii(ElementsList,gpmetisfile): 
    f = open(gpmetisfile, 'r')
    indexer={}
    i=0     
    for line in gpmetisfile:
        patchIndex = eval(line)  

        if patchIndex in indexer:
            localIndex=indexer[patchIndex]

        else:
            indexer[patchIndex]=0

        test = ElementsList[i].setLocalIndex(patchIndex,localIndex) 
        if test:
            indexer[patchIndex] +=1

EDIT – the gpmetisfile is what I use to break down the geometry into pieces. It comes in the format of the nth line corresponding to the nth element that simply has a single value, the patch it belongs to. ElementsList is a list of the elements in the geometry.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:02:34+00:00Added an answer on June 6, 2026 at 3:02 am

    I do not fully understand the details of your problem but the easiest way to work with hdf5 file is using the nice h5py library. Here you can find the documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I am working on a large database that is used to track wire
Background: I'm working on a project that's starting out with a large SQL dump
I've run into a dilemma when working with apps that should support a large
Background: I am writing a C++ program working with large amounts of geodata, and
I'm working on a large-size dual AS3/Flex project (some parts are pure AS3, other
First some background, I am currently working on a relatively large Asp.Net MVC application
working on making a flash program that loads about 1000 jpegs and then plays
I have a large activity that contains 100 or more buttons. But it's working
I'm working on an application that will be available for Android and iPhone. The
Background I recently joined a small start-up after working at a large company. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.