Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
AHartmaier committed Jan 11, 2025
1 parent f52a083 commit d252ba0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/Train_CPFEM/train_cpfem.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def rgb_to_hex(rgb):
# Import data from micromechanical simulations
db = FE.Data("Data_Random_Texture.json",
epl_crit=2.e-3, epl_start=1.e-3, epl_max=0.03,
depl=0, # 1.e-3,
depl=1.e-3,
wh_data=True)
mat_ref = FE.Material(name="reference") # define reference material
mat_ref.elasticity(CV=db.mat_data['elast_const'])
Expand All @@ -46,7 +46,6 @@ def rgb_to_hex(rgb):
sig_tot, epl_tot, yf_ref = FE.create_test_sig(file="Data_Random_Texture_Test.json")
yf_ml = mat_ml.calc_yf(sig_tot, epl_tot, pred=False)
results = FE.training_score(yf_ref, yf_ml)
print(results)

# Plot Hardening levels over a meshed space
save_fig = False
Expand Down

0 comments on commit d252ba0

Please sign in to comment.