Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
e71bddf
install scalapack and hypre
dreamer2368 May 22, 2024
6249161
install script for LC quartz
dreamer2368 May 22, 2024
10ce3b6
LC module setup
dreamer2368 May 22, 2024
de14f83
fix mfem build
dreamer2368 May 22, 2024
de9d1c1
fixed yaml path
dreamer2368 May 22, 2024
52aedfd
gmsh2mfem bugfix
larsson4 May 9, 2024
702986c
Added 3D geometry generation files + meshes
larsson4 May 9, 2024
134381e
Generate configuration file
larsson4 May 9, 2024
7dad8bc
Added FOM training file
larsson4 May 9, 2024
1cdb9d2
Enabled ROM
larsson4 May 9, 2024
a0fdc11
3dcw meshes and configuration
larsson4 May 13, 2024
7ede0f0
FOM works
larsson4 May 14, 2024
99183f8
Added automatic warp by vector
larsson4 May 14, 2024
d0c705f
Added componentwise training 3D
larsson4 May 15, 2024
e77aadb
cube meshes
larsson4 May 16, 2024
b0566fe
Parameterized problem with cube mesh
larsson4 May 16, 2024
fa05bfb
Fixed training
larsson4 May 22, 2024
760779c
Added command line plotting
larsson4 May 22, 2024
80e2a68
Improved plots
larsson4 May 23, 2024
8b6fab9
Nicer plot labels
larsson4 May 23, 2024
ed09fe2
Export 1% relerr
larsson4 May 24, 2024
b71f140
plot wit 1%rel err markers
larsson4 May 24, 2024
cb284d0
Added print statement for output
larsson4 May 24, 2024
920d077
Synced install_quartz
larsson4 May 24, 2024
f6399a7
Added Rhino files
larsson4 May 28, 2024
1f2dfe8
Updated meshes
axla-io Mar 19, 2025
b23c08d
Added octet truss training meshes
axla-io Mar 19, 2025
b655779
Compiles
axla-io Mar 19, 2025
4231ddf
Updated mesh and added truss configs
axla-io Mar 19, 2025
1233433
Debugged port generation
axla-io Mar 20, 2025
decc477
Figured out solver
axla-io Mar 20, 2025
bbf2dab
Added configs and training file for octet truss
axla-io Mar 20, 2025
17280ea
Added check for NaN and divergent solutions
axla-io Mar 20, 2025
949ea2d
Setting SVD tolerance to double precision.
axla-io Mar 20, 2025
f862b5e
Cleaned up configs and copy script
axla-io Mar 20, 2025
d78aaab
Parameterized problems for 3D FOM
axla-io Mar 23, 2025
5aebdb8
Debugged cube
axla-io Mar 24, 2025
625f8fc
Debugged mesh and config for cube
axla-io Mar 24, 2025
ad8ffb2
Debugged beam
axla-io Mar 24, 2025
7d254f6
Truss config debugged
axla-io Mar 24, 2025
3b68e4c
Fixed training and configs
axla-io Mar 25, 2025
de73f5f
Function to load octet truss results
axla-io Mar 25, 2025
e5d7269
Compiles after rebase
axla-io Mar 25, 2025
71e665b
Sampling now works for 3D
axla-io Mar 25, 2025
409abd4
Improved plotting
axla-io Mar 28, 2025
b7b3d73
Training with more intensity
axla-io Apr 7, 2025
8259377
Added option to unitize load vector
axla-io May 1, 2025
5a9a115
Implemented scaled version
axla-io May 1, 2025
2542de3
New HD mesh
axla-io May 6, 2025
803c6cf
L in different directions
axla-io May 6, 2025
99bb23b
Simplified parameterized problem
axla-io May 6, 2025
342acb5
LFS tracking large mesh
axla-io May 6, 2025
5322181
debug main workflow
axla-io May 7, 2025
3b5665b
Print debugging
axla-io May 7, 2025
44a0fb3
more print statements for debugging
axla-io May 7, 2025
f62d179
Even more print statements
axla-io May 7, 2025
db88f0d
Going deeper with the porint statements
axla-io May 7, 2025
f2980a9
addresses
axla-io May 7, 2025
0397f7f
Added assertions
axla-io May 8, 2025
b80e8d1
small fix
axla-io May 8, 2025
e925f33
Add more tests
axla-io May 8, 2025
edc5ba4
try fraction
axla-io May 8, 2025
e989a63
fix
axla-io May 8, 2025
d869e10
fix2
axla-io May 8, 2025
8b86e5e
smaller fraction
axla-io May 8, 2025
3dd1156
even smaller fraction
axla-io May 8, 2025
cd13e88
Even more testing
axla-io May 8, 2025
bd1e2c3
reorder
axla-io May 8, 2025
acecac2
Reduced size of HD mesh
axla-io May 8, 2025
6464c12
Debug
axla-io May 8, 2025
fd1b7a9
remove print statements
axla-io May 8, 2025
afc6202
Testing out randomized SVD
axla-io May 10, 2025
6a5cf40
Removing randomized SVD and trying large sample again
axla-io May 13, 2025
78996b7
Reactivate perturbation function
axla-io May 13, 2025
6e03810
Added unit train configurations
axla-io Jun 4, 2025
90350dd
Comment out the output scaling
axla-io Jun 4, 2025
331161b
Debug config copy
axla-io Jun 4, 2025
3c73cb8
Proper file extension
axla-io Jun 4, 2025
a9e2c1a
Remove perturb function again
axla-io Jun 5, 2025
feccacf
Cmakelist fix
axla-io Jun 6, 2025
faa383e
two unit config
axla-io Jun 6, 2025
ae2c5c5
Add back perturb func for single unit case
axla-io Jun 6, 2025
4ee5d0c
correct config
axla-io Jun 6, 2025
a266965
test random rhs
axla-io Jun 7, 2025
9558a35
Correct random implementation
axla-io Jun 7, 2025
378bc65
normalized random
axla-io Jun 7, 2025
7640700
Additive noise to load vector
axla-io Jun 12, 2025
0b6849b
Pointer issue
axla-io Jun 12, 2025
4b97776
Pointer syntax error
axla-io Jun 12, 2025
f37e77b
testing mult instead of add
axla-io Jun 12, 2025
c313601
Added command line arguments to linelast solver
axla-io Jun 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
examples/linelast/meshes/octet_truss_hd.mesh filter=lfs diff=lfs merge=lfs -text
37 changes: 37 additions & 0 deletions examples/linelast/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,35 @@ file(COPY config/linelast.comp_train.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples
file(COPY linelast.opt_comp_train.yml DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast)
file(COPY linelast.opt_comp_fom.yml DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast)
file(COPY config/linelast.optfom.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.simpleL3D.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY linelast.simpleL3D.yml DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast)
file(COPY config/linelast.3dcwfom.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.3dcw_train0.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.3dcw_train1.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.3dcw_train2.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.3dcw_train3.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY linelast.3dcw_fom.yml DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast)
file(COPY linelast.3dcw_comp_train.yml DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast)
file(COPY linelast.octet_truss_comp_train.yml DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast)
file(COPY config/linelast.octet_truss_train0.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_train1.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_train2.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_train3.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_train4.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_train5.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_cube.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_beam1.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_beam2.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_beam3.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_beam4.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_top.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY linelast.octet_truss_fom.yml DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast)
file(COPY config/linelast.octet_truss_unittrain0.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_unittrain1.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_unittrain2.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_unittrain3.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_unittrain4.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)
file(COPY config/linelast.octet_truss_unittrain5.h5 DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/config)

file(COPY meshes/beam-tri.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/beam-tet.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
Expand All @@ -21,3 +50,11 @@ file(COPY meshes/rod2D_V.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/
file(COPY meshes/optjoint.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/optbeam.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/optcol.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/3d_joint.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/3d_beam.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/3d_col.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/3dcw_joint.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/3dcw_beamH.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/3dcw_beamV.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/octet_truss.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
file(COPY meshes/octet_truss_hd.mesh DESTINATION ${CMAKE_BINARY_DIR}/examples/linelast/meshes)
89 changes: 89 additions & 0 deletions examples/linelast/apply_warp_by_vector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# trace generated using paraview version 5.11.2
#import paraview
#paraview.compatibility.major = 5
#paraview.compatibility.minor = 11


def apply_warpvector(filename):
# find source
srcsol = FindSource(filename)
# set active source
SetActiveSource(srcsol)

# get color transfer function/color map for 'solution'
solutionLUT = GetColorTransferFunction('solution')

# get opacity transfer function/opacity map for 'solution'
solutionPWF = GetOpacityTransferFunction('solution')

# get 2D transfer function for 'solution'
solutionTF2D = GetTransferFunction2D('solution')

# get active view
renderView1 = GetActiveViewOrCreate('RenderView')

# get display properties
srcsolDisplay = GetDisplayProperties(srcsol, view=renderView1)

# create a new 'Warp By Vector'
warpByVector = WarpByVector(registrationName='WarpByVector_'+filename, Input=srcsol)
warpByVector.Vectors = ['POINTS', 'solution']

# set active source
SetActiveSource(warpByVector)

# show data in view
warpByVectorDisplay = Show(warpByVector, renderView1, 'UnstructuredGridRepresentation')

# trace defaults for the display properties.
warpByVectorDisplay.Representation = 'Surface'
warpByVectorDisplay.ColorArrayName = ['POINTS', 'solution']
warpByVectorDisplay.LookupTable = solutionLUT
warpByVectorDisplay.SelectTCoordArray = 'None'
warpByVectorDisplay.SelectNormalArray = 'None'
warpByVectorDisplay.SelectTangentArray = 'None'
warpByVectorDisplay.OSPRayScaleArray = 'solution'
warpByVectorDisplay.OSPRayScaleFunction = 'PiecewiseFunction'
warpByVectorDisplay.SelectOrientationVectors = 'None'
warpByVectorDisplay.ScaleFactor = 1.0034994557994217
warpByVectorDisplay.SelectScaleArray = 'None'
warpByVectorDisplay.GlyphType = 'Arrow'
warpByVectorDisplay.GlyphTableIndexArray = 'None'
warpByVectorDisplay.GaussianRadius = 0.05017497278997109
warpByVectorDisplay.SetScaleArray = ['POINTS', 'solution']
warpByVectorDisplay.ScaleTransferFunction = 'PiecewiseFunction'
warpByVectorDisplay.OpacityArray = ['POINTS', 'solution']
warpByVectorDisplay.OpacityTransferFunction = 'PiecewiseFunction'
warpByVectorDisplay.DataAxesGrid = 'GridAxesRepresentation'
warpByVectorDisplay.PolarAxes = 'PolarAxesRepresentation'
warpByVectorDisplay.ScalarOpacityFunction = solutionPWF
warpByVectorDisplay.ScalarOpacityUnitDistance = 1.2815333878254977
warpByVectorDisplay.OpacityArrayName = ['POINTS', 'solution']
warpByVectorDisplay.SelectInputVectors = ['POINTS', 'solution']
warpByVectorDisplay.WriteLog = ''

# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
warpByVectorDisplay.ScaleTransferFunction.Points = [-0.01822456776713409, 0.0, 0.5, 0.0, 0.01827591453119054, 1.0, 0.5, 0.0]

# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
warpByVectorDisplay.OpacityTransferFunction.Points = [-0.01822456776713409, 0.0, 0.5, 0.0, 0.01827591453119054, 1.0, 0.5, 0.0]

# show color bar/color legend
warpByVectorDisplay.SetScalarBarVisibility(renderView1, True)

# hide data in view
Hide(srcsol, renderView1)

#### import the simple module from the paraview
from paraview.simple import *
import os
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

root_dir = '/Users/larsson4/repos/scaleupROM/build/examples/linelast'
prefix = "paraview_output"
os.chdir(root_dir)
filenames = [str(f)+'.pvd' for f in os.listdir('.') if os.path.isdir(f) and '_'.join(f.split('_')[0:-1]) == prefix]
for filename in filenames:
print(filename)
apply_warpvector(filename)
Binary file added examples/linelast/config/linelast.3dcw_train0.h5
Binary file not shown.
Binary file added examples/linelast/config/linelast.3dcw_train1.h5
Binary file not shown.
Binary file added examples/linelast/config/linelast.3dcw_train2.h5
Binary file not shown.
Binary file added examples/linelast/config/linelast.3dcw_train3.h5
Binary file not shown.
Binary file added examples/linelast/config/linelast.3dcwfom.h5
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added examples/linelast/config/linelast.simpleL3D.h5
Binary file not shown.
Loading
Loading