Rui Wan commited on
Commit
dbecf32
·
1 Parent(s): 8f38a42

update layout

Browse files
__pycache__/Dataset.cpython-312.pyc CHANGED
Binary files a/__pycache__/Dataset.cpython-312.pyc and b/__pycache__/Dataset.cpython-312.pyc differ
 
__pycache__/model.cpython-312.pyc CHANGED
Binary files a/__pycache__/model.cpython-312.pyc and b/__pycache__/model.cpython-312.pyc differ
 
app.py CHANGED
@@ -288,10 +288,10 @@ if st.session_state.AM_design_button_clicked == True:
288
  st.dataframe(data2, hide_index=True, width=500)
289
 
290
  data3 = pd.DataFrame({
291
- 'Maximum angle A (degree)': [1.2],
292
- 'Maximum angle B (degree)': [2.2],
293
- 'Maximum angle C (degree)': [1.0],
294
- 'Maximum residual stress': [160]
295
  })
296
  st.dataframe(data3, hide_index=True, width=700)
297
 
 
288
  st.dataframe(data2, hide_index=True, width=500)
289
 
290
  data3 = pd.DataFrame({
291
+ 'Maximum angle A (degree)': best['output'][0],
292
+ 'Maximum angle B (degree)': best['output'][1],
293
+ 'Maximum angle C (degree)': best['output'][2],
294
+ 'Maximum residual stress': best['output'][3]
295
  })
296
  st.dataframe(data3, hide_index=True, width=700)
297
 
model_fdm.py CHANGED
@@ -335,4 +335,4 @@ if __name__ == "__main__":
335
  y_target=np.array([-0.22, 0.11, -0.004, 185.2]), n_restarts=20, epochs=100, use_lbfgs=True)
336
  print("Best design found:")
337
  print(f"Extruder_Temp: {best['input'][0]:.2f}, Velocity: {best['input'][1]:.2f}, Bed_Temp: {best['input'][2]:.2f}")
338
- print(f"Predicted Outputs: Phi7_Change: {best['output'][0]:.4f}, Phi8_Change: {best['output'][1]:.4f}, Phi9_Change: {best['output'][2]:.4f}")
 
335
  y_target=np.array([-0.22, 0.11, -0.004, 185.2]), n_restarts=20, epochs=100, use_lbfgs=True)
336
  print("Best design found:")
337
  print(f"Extruder_Temp: {best['input'][0]:.2f}, Velocity: {best['input'][1]:.2f}, Bed_Temp: {best['input'][2]:.2f}")
338
+ print(f"Predicted Outputs: Phi7_Change: {best['output'][0]:.4f}, Phi8_Change: {best['output'][1]:.4f}, Phi9_Change: {best['output'][2]:.4f}, Global_Max_Stress: {best['output'][3]:.4f}")