-
When running the code (https://mapdl.docs.pyansys.com/version/stable/examples/extended_examples/Krylov/krylov_example.html): mapdl.run('/SOLU')
mapdl.antype('HARMIC') # Set options for harmonic analysis
mapdl.hropt('KRYLOV')
mapdl.eqslv('SPARSE')
mapdl.harfrq(0,1000) # Set beginning and ending frequency
mapdl.nsubst(100) # Set the number of frequency increments
mapdl.wrfull(1) # Generate FULL file and stop
mapdl.solve()
mapdl.finish()
dd = mapdl.krylov # Initialize Krylov class object
Qz = dd.gensubspace(10, 500, check_orthogonality=True)
print(Qz.shape)
Yz = dd.solve(0, 1000, 100, ramped_load=True)
print(Yz.shape)
result = dd.expand(residual_computation=True, residual_algorithm="l2", return_solution = True)
Solution tried and failed:
Could you please help how to solve this problem about |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Hi @dhabar95 @germa89 @clatapie
And the example ran fine. I don't have a lot of time to dig into the APDL macros and PyMAPDL Krylov method today...maybe later this week. I'm not yet sure why SMP is required. |
Beta Was this translation helpful? Give feedback.
-
Hi @germa89 @mikerife @kmkoshy , |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I recommend waiting for the FULL file to be generated
|
Beta Was this translation helpful? Give feedback.
Hi @dhabar95 @germa89 @clatapie
In MAPDL there are two Krylov workflows; one that uses APDL commands and one that uses a set of 3 APDL macros (that have to be downloaded from the MAPDL documentation). The APDL macro method notes that SMP must be used. I took a quick look at the APDL macros vs the PyMAPDL Krylov method and kind of gave up for now (a lot to look at). So instead in the example Dharshan is pointing to I used:
And the example ran fine. I don't have a lot of time to dig into the APDL macros and PyMAPDL Krylov method today...maybe later this week. I'm not yet sure why SMP is required.
Mike