polyfem / polyfem

A polyvalent C++ FEM library
https://polyfem.github.io/
MIT License
465 stars 86 forks source link

Quasistatic Simualtions #330

Open jiangr100 opened 5 months ago

jiangr100 commented 5 months ago

Hello, I've seen in this page here https://polyfem.github.io/json_defaults_and_spec/ that quasistatic simulation is a possible feature, but i get "warning: Inconsistent specifications: /time/quasistatic is neither an optional or a mandatory field." when adding it to my json file. Is there any way to run quasistatic simulation in PolyFEM or this is not supported? thank you!

zfergus commented 5 months ago

Can you post the JSON file you are using? Are you doing something like

"time": {
"dt": 0.01,
"tend": 1,
"quasistatic": true
}

I believe you might need the dt and tend parameters explicitly to tell it what the quasi-static steps should be. Otherwise if you want a one-step static simulation then you can achieve this by omitting the time field completely.

jiangr100 commented 4 months ago

sorry for the late reply, yes I've done exactly that and it showed me the error message. And I do need multiple steps of quasi-static simulations. Did you successfully reproduce the problem?