Welcome to loadit’s documentation!

A blazing fast database for FEM loads.

Requirements

  • python 3.6 (or later)
  • numpy
  • pyarrow
  • numba
  • pandas
  • pyjwt
  • wxpython

Installation

Run the following command:

pip install loadit

Quickstart

Launch the database manager:

client = loadit.Client()

Create a new database:

database = client.create_database('example_local_database')

Load an existing database:

database = client.load_database('example_local_database')

Connect to a remote server (you will be asked to login):

client.connect('192.168.0.154:8080')

Create a new remote database:

database = client.create_remote_database('example_remote_database')

Load an existing remote database:

database = client.load_remote_database('example_remote_database')

Database management

Check database integrity:

database.check()

Display database info:

database.header.info()

Perform a query:

dataframe = database.query_from_file(query_file)

Append new result files to an existing database (this action is reversible):

files = ['/Users/Alvaro/FEM_results/file03.pch', '/Users/Alvaro/FEM_results/file04.pch']
batch_name = 'new_batch'
database.new_batch(files, batch_name)

Restore database to a previous state (this action is NOT reversible!):

database.restore('Initial batch')

Add an attachment:

database.add_attachment('/Users/Alvaro/Desktop/nastran_model_input/BulkData.zip')

Download an attachment:

database.download_attachment('BulkData.zip', '/Users/Alvaro/Desktop/nastran_model_input/BulkData.zip'')

Remove an attachment:

database.remove_attachment('BulkData.zip')

Cluster management

Show remote cluster info:

client.info()

Sync databases between cluster nodes:

client.sync_databases()

Shutdown the cluster:

client.shutdown()

Supported tables

Currently there is only support for nastran .pch files for the following tables:

  • ‘ELEMENT FORCES - ROD (1)’
  • ‘ELEMENT FORCES - BEAM (2)’
  • ‘ELEMENT FORCES - ELAS1 (11)’
  • ‘ELEMENT FORCES - ELAS2 (12)’
  • ‘ELEMENT FORCES - ELAS3 (13)’
  • ‘ELEMENT FORCES - ELAS4 (14)’
  • ‘ELEMENT FORCES - QUAD4 (33)’
  • ‘ELEMENT FORCES - BAR (34)’
  • ‘ELEMENT FORCES - TRIA3 (74)’
  • ‘ELEMENT FORCES - BARS (100)’
  • ‘ELEMENT FORCES - BUSH (102)’

License

Copyright (c) 2018, Álvaro Sanz Oriz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contact

Álvaro Sanz Oriz – alvaro.sanz.oriz@gmail.com

Indices and tables