My database file is considerably larger after solving, can I clear the db of the results so that only the model information is left?


Yes, you can use SAVE,,,,MODEL to just save the model information and not the results. The following example demonstrates a save (save,,,,all) before the solve that is 1280kb. After the solve results are included, so the saved (save,,,,all) database is 1408 kb. Then the database is saved (save,,,,model) again without results and it is back to 1280kb. Therefore, the results are not included in the database.

/prep7
mp,ex,1,30e6
mp,nuxy,1,0.3
et,1,solid45
blc4,0,0,10,10,10
/view,1,1,1,1
/repl
vmesh,all
/solu
da,1,all,0
sfa,2,1,pres,1000
time,1
lswr,1
sfa,3,1,pres,1000
time,1.5
lswr,2
sfa,4,1,pres,1000
time,5
lswr,3
save,save_before_solve,db,,all !db is 1280 kb
lssolve,1,3
save,save_after_solve,db,,all !db is 1408 kb (contains results)
save,save_after_solve_no_results,db,,model !db is 1280 kb (results removed, and same size as before solve)


!Note: To not write the results to the db issue /CONFIG,NOELDB,1 from the BEGIN level before solving. See Solution 361113 for more details.





Show Form
No comments yet. Be the first to add a comment!