u/space_cowboy_404

▲ 5 r/COMSOL

Running COMSOL inside an optimization loop

Say you were to fine-tune a NN on experimental data, would it be possible to run a pipeline like

Python updates NN weights
→ rebuild/export model
→ run COMSOL
→ extract reaction forces
→ compute loss
→ update weights
→ repeat

In this comsol is called iteratively to solve for the constitutive quantities(here the overall response). and then compare it to your ground truth(experiments) --> update weights and repeat until a satisfcatory loss.

Or should one go with a custom FE code or a FE software like Abaqus that might offer better scripting

reddit.com
u/space_cowboy_404 — 13 days ago