Skip to content

Adding pySimpleGEIM#21

Open
mahmudulh-tamim wants to merge 8 commits intomainfrom
add-pyGeimFoam
Open

Adding pySimpleGEIM#21
mahmudulh-tamim wants to merge 8 commits intomainfrom
add-pyGeimFoam

Conversation

@mahmudulh-tamim
Copy link
Copy Markdown
Collaborator

This pull request adds the pySimpleGEIM.py module, which can run GEIM à la Ragusa on the snapshot matrix obtained from a snapshot_matrix_builder object (see PR #20).

Location: src/python/GEIM/

The module contains two classes that can be imported as follows:

from pySimpleGEIM import pyGEIM_offline, pyGEIM_online

Offline Phase
An object of the offline class can be instantiated as:

geim_offline = pyGEIM_offline(snaps_obj=sm_builder_obj, rank=40, list_observable_fields=obs_fields)

After instantiation, run the algorithm:

geim_offline.run_algorithm()

Once the algorithm completes, the object contains the basis functions, sensor locations, and system matrix.
Online Phase
The online class can then be instantiated (requires a completed offline object):

geim_online = pyGEIM_online(offline_object=geim_offline, snaps_object=sm_builder_obj)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant