|
429 | 429 |
|
430 | 430 |
|
431 | 431 | @testset "ThermoMech_EntropicPolyconvex" begin |
432 | | -# 63.3 μs Histogram: log(frequency) by time 169 μs < |
433 | | -# Memory estimate: 4.28 KiB, allocs estimate: 89 |
| 432 | + # 63.3 μs Histogram: log(frequency) by time 169 μs < |
| 433 | + # Memory estimate: 4.28 KiB, allocs estimate: 89 |
434 | 434 | ∇u = 1e-1 * TensorValue(1, 2, 3, 4, 5, 6, 7, 8, 9) |
435 | 435 | θt = 21.6 |
436 | 436 | modmec = MooneyRivlin3D(λ=10.0, μ1=1.0, μ2=1.0, ρ=1.0) |
|
458 | 458 |
|
459 | 459 |
|
460 | 460 | @testset "ThermoElectroMech_Bonet" begin |
461 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 461 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
462 | 462 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3 |
463 | 463 | ∇φ = VectorValue(1.0, 2.0, 3.0) |
464 | 464 | θt = 3.4 - 1.0 |
|
501 | 501 |
|
502 | 502 |
|
503 | 503 | @testset "VolumetricEnergy" begin |
504 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 504 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
505 | 505 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3 |
506 | 506 | model = VolumetricEnergy(λ=0.0) |
507 | 507 | test_derivatives_3D_(model, Kinematics(Mechano, Solid)) |
|
512 | 512 |
|
513 | 513 |
|
514 | 514 | @testset "ThermoElectroMech_Govindjee" begin |
515 | | -# 121 μs Histogram: log(frequency) by time 331 μs < |
516 | | -# Memory estimate: 18.98 KiB, allocs estimate: 300. |
| 515 | + # 121 μs Histogram: log(frequency) by time 331 μs < |
| 516 | + # Memory estimate: 18.98 KiB, allocs estimate: 300. |
517 | 517 |
|
518 | 518 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3 |
519 | 519 | ∇φ = VectorValue(1.0, 2.0, 3.0) |
|
606 | 606 |
|
607 | 607 |
|
608 | 608 | @testset "IdealMagnetic2D" begin |
609 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 609 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
610 | 610 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3 |
611 | 611 | ∇φ = VectorValue(1.0, 2.0) |
612 | 612 |
|
|
635 | 635 |
|
636 | 636 |
|
637 | 637 | @testset "IdealMagnetic" begin |
638 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 638 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
639 | 639 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3 |
640 | 640 | ∇φ = VectorValue(1.0, 2.0, 3.0) |
641 | 641 |
|
|
671 | 671 |
|
672 | 672 |
|
673 | 673 | @testset "HardMagnetic_SoftMaterial3D_aniso" begin |
674 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 674 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
675 | 675 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3 |
676 | 676 | ∇φ = VectorValue(1.0, 2.0, 3.0) |
677 | 677 | N = VectorValue(0.0, 0.0, 1.0) |
|
713 | 713 |
|
714 | 714 |
|
715 | 715 | @testset "HardMagnetic_SoftMaterial3D" begin |
716 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 716 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
717 | 717 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0) * 1e-3 |
718 | 718 | ∇φ = VectorValue(1.0, 2.0, 3.0) |
719 | 719 | N = VectorValue(0.0, 0.0, 1.0) |
|
751 | 751 |
|
752 | 752 |
|
753 | 753 | @testset "Magnetic3D" begin |
754 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 754 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
755 | 755 | ∇φ = VectorValue(1.0, 2.0, 3.0) |
756 | 756 | a = 40e-3 |
757 | 757 | modelID = Magnetic(μ0=1.2566e-6, αr=a, χe=0.0) |
|
775 | 775 |
|
776 | 776 |
|
777 | 777 | @testset "Magnetic2D" begin |
778 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 778 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
779 | 779 | ∇φ = VectorValue(1.0, 2.0) |
780 | 780 | a = 40e-3 |
781 | 781 | modelID = Magnetic(μ0=1.2566e-6, αr=a, χe=0.0) |
|
800 | 800 |
|
801 | 801 |
|
802 | 802 | @testset "IdealMagnetic_SoftMaterial2D" begin |
803 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 803 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
804 | 804 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3 |
805 | 805 | ∇φ = VectorValue(1.0, 2.0) |
806 | 806 | N = VectorValue(0.0, 1.0) |
|
843 | 843 |
|
844 | 844 |
|
845 | 845 | @testset "HardMagnetic_SoftMaterial2D" begin |
846 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 846 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
847 | 847 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3 |
848 | 848 | ∇φ = VectorValue(1.0, 2.0) |
849 | 849 | N = VectorValue(0.0, 1.0) |
|
888 | 888 |
|
889 | 889 |
|
890 | 890 | @testset "ARAP2D" begin |
891 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 891 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
892 | 892 | model = ARAP2D(μ=μParams[1]) |
893 | 893 | test_derivatives_2D_(model, Kinematics(Mechano, Solid), rtol=1e-13) |
894 | 894 | test_equilibrium_at_rest_2D(model) |
|
898 | 898 |
|
899 | 899 |
|
900 | 900 | @testset "ARAP2D_regularized" begin |
901 | | -# Memory estimate: 0 bytes, allocs estimate: 0. |
| 901 | + # Memory estimate: 0 bytes, allocs estimate: 0. |
902 | 902 | model = ARAP2D_regularized(μ=μParams[1]) |
903 | 903 | test_derivatives_2D_(model, Kinematics(Mechano, Solid), rtol=1e-13) |
904 | 904 | test_equilibrium_at_rest_2D(model) |
|
936 | 936 |
|
937 | 937 |
|
938 | 938 | @testset "Hessian∇JRegularization" begin |
939 | | -# 4.09 μs Histogram: log(frequency) by time 10.8 μs < |
940 | | -# Memory estimate: 2.58 KiB, allocs estimate: 11. |
| 939 | + # 4.09 μs Histogram: log(frequency) by time 10.8 μs < |
| 940 | + # Memory estimate: 2.58 KiB, allocs estimate: 11. |
941 | 941 | ∇u = TensorValue(1.0, 2.0, 3.0, 4.0) * 1e-3 |
942 | 942 | ∇u0 = TensorValue(1.0, 2.0, 3.0, 4.0) * 0.0 |
943 | 943 | model = ARAP2D(μ=μParams[1]) |
|
0 commit comments