|
40 | 40 | # Test default constructor |
41 | 41 | mat1 = RKCMaterial() |
42 | 42 | @test mat1.kernel == cubic_b_spline_kernel |
43 | | - @test mat1.constitutive_model isa LinearElastic |
| 43 | + @test mat1.constitutive_model isa SaintVenantKirchhoff |
44 | 44 | @test mat1.dmgmodel isa CriticalStretch |
45 | 45 | @test mat1.maxdmg == 1.0 |
46 | 46 | @test mat1.reprkernel == :C1 |
|
49 | 49 | # Test constructor with parameters |
50 | 50 | mat2 = RKCMaterial( |
51 | 51 | kernel = linear_kernel, |
52 | | - model = SaintVenantKirchhoff(), |
| 52 | + model = LinearElastic(), |
53 | 53 | dmgmodel = CriticalStretch(), |
54 | 54 | maxdmg = 0.75, |
55 | 55 | reprkernel = :C1, |
56 | 56 | regfactor = 1e-10 |
57 | 57 | ) |
58 | 58 | @test mat2.kernel == linear_kernel |
59 | | - @test mat2.constitutive_model isa SaintVenantKirchhoff |
| 59 | + @test mat2.constitutive_model isa LinearElastic |
60 | 60 | @test mat2.dmgmodel isa CriticalStretch |
61 | 61 | @test mat2.maxdmg == 0.75 |
62 | 62 | @test mat2.reprkernel == :C1 |
|
71 | 71 | # Test default constructor |
72 | 72 | mat1 = RKCRMaterial() |
73 | 73 | @test mat1.kernel == cubic_b_spline_kernel |
74 | | - @test mat1.constitutive_model isa LinearElastic |
| 74 | + @test mat1.constitutive_model isa SaintVenantKirchhoff |
75 | 75 | @test mat1.dmgmodel isa CriticalStretch |
76 | 76 | @test mat1.maxdmg == 1.0 |
77 | 77 | @test mat1.reprkernel == :C1 |
78 | 78 | @test mat1.regfactor == 1e-13 |
79 | 79 |
|
80 | | - # Test constructor with parameters (only LinearElastic is supported) |
| 80 | + # Test constructor with parameters (only linear elastic models are supported) |
81 | 81 | mat2 = RKCRMaterial( |
82 | 82 | kernel = linear_kernel, |
83 | 83 | model = LinearElastic(), |
|
94 | 94 | @test mat2.regfactor == 1e-10 |
95 | 95 |
|
96 | 96 | # Test failure with non-LinearElastic model |
97 | | - @test_throws ArgumentError RKCRMaterial(model = SaintVenantKirchhoff()) |
| 97 | + @test_throws ArgumentError RKCRMaterial(model = NeoHooke()) |
98 | 98 |
|
99 | 99 | # Test constructor with invalid regfactor |
100 | 100 | @test_throws ArgumentError RKCRMaterial(regfactor = 2.0) |
|
0 commit comments