Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prom linear elasticity #19

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Prom linear elasticity #19

merged 3 commits into from
Nov 16, 2023

Conversation

bumpwy
Copy link
Collaborator

@bumpwy bumpwy commented Oct 4, 2023

Running the example

1. first two offline phases for nu=0.2 & 0.4

python linear_elasticity_global_rom.py -offline -id 0 -nu 0.2
python linear_elasticity_global_rom.py -offline -id 1 -nu 0.4

2. the merge phase:

python linear_elasticity_global_rom.py -merge -ns 2

3. final offline phase FOM for nu=0.3

python linear_elasticity_global_rom.py -offline -id 2 -nu 0.3
results:

PCG Iterations = 17
Final PCG Relative Residual Norm = 4.35538e-09
Creating file: basis2_snapshot.000000
Elapsed time for assembling FOM: 0.002839803695678711 second
Elapsed time for solving FOM: 0.005137205123901367 second

4. online phase ROM for nu=0.3

python linear_elasticity_global_rom.py -online -id 3 -nu 0.3
results:

Size of linear system: 1170
Opening file: basis.000000
On rank 0, spatial basis dimension is 1170 x 2
Relative error of ROM for E=2.5 and nu=0.3 is 0.0005710430923335614
Elapsed time for assembling ROM: 0.02164936065673828 second
Elapsed time for solving ROM: 1.1920928955078125e-05 second

@bumpwy bumpwy marked this pull request as ready for review October 4, 2023 21:47
@bumpwy bumpwy requested review from dreamer2368 and chldkdtn October 4, 2023 21:47
@bumpwy bumpwy force-pushed the prom_linear_elasticity branch from 18c6823 to 2196935 Compare October 4, 2023 21:59
Copy link
Collaborator

@dreamer2368 dreamer2368 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running on quartz on my end showed the consistent result as shown in PR.

@bumpwy bumpwy requested a review from siuwuncheung November 6, 2023 18:37
Copy link
Member

@siuwuncheung siuwuncheung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bumpwy! Look good to me overall.

examples/prom/linear_elasticity_global_rom.py Outdated Show resolved Hide resolved
examples/prom/linear_elasticity_global_rom.py Outdated Show resolved Hide resolved
@bumpwy
Copy link
Collaborator Author

bumpwy commented Nov 16, 2023

Hi @siuwuncheung thanks for the review I have edited the code accordingly.

@bumpwy bumpwy merged commit ee7a47e into main Nov 16, 2023
5 checks passed
@bumpwy bumpwy deleted the prom_linear_elasticity branch November 16, 2023 17:47
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.

3 participants