Repository navigation
v8.0.0
MPI (issue #73)
- A rank holds only its partition, as a serial mesh in local ids (ghosts included):
mesh.coord,connect, tags, dof vectors, results and matrices have the rank's size,
soResult(...)[nodes]lines up as in serial.mesh.globalNodesgives each node's
global id: read a whole-mesh nodal file withvalues[mesh.globalNodes]. - Every simulation solves over the ranks as in serial: PhaseField, Thermal, Beam and
WeakForms join Elastic, HyperElastic and InElastic. DIC,Mesh.Mergeand beam
connections refuse a partitioned mesh. - Breaking:
Reduce_sum,Reduce_min,Reduce_max,Allgathertake a required
comm→Reduce_sum(value, mesh.comm). - Breaking:
Calc_Reaction(dofs)returns the rank's rows; for the total use
simu.Calc_Resultant(dofs), identical on every rank. - PETSc keeps its matrix and solver between solves (LU factors included): a step with an
unchangedAcosts a solve, not a factorisation. Movie_simu, and GLTF, USD, VizirSave_simu, need a gathered simulation, as
Plot_Energy. Paraview.pvdtimesteps are the iteration indices.
Saved iterations (issue #73)
- Under MPI each rank saves its own rows in
Rank{r}/;Load_Simuresumes on the same
number of ranks, and a serialLoad_Simureads the whole run. - Breaking: runs saved per rank before 8.0 (
_rank{r}files) are no longer read;
partitionedMesh.Savewritesfolder/Rank{r}/filename.pickle. - Beam simulations and WeakForms using a module-level
@BiLinearForm/@LinearFormcan
be saved.
Linear system (issue #74)
- Breaking:
TimeSchemespackage replacesAlgoTypeandsimu.algo→
Solver_Set_Hyperbolic_Algorithm(dt, TimeSchemes.Hyperbolic.HHT, alpha=0.1).HHT
now damps (the formerAlgoType.hhtdid not); custom schemes subclass a scheme. - Breaking:
Get_K_C_M_Fremoved →Assembly(problemType)returnsK, C, M, F. - Breaking:
Calc_Energy(slot, ...)takes"K"(strain) or"M"(kinetic), not a
matrix. - Breaking:
mesh.orphanNodesremoved: dofs in no element are known 0, with a
warning if loaded or constrained. Need_Update(problemType=None)marks one problem stale, every one by default.- Lagrange conditions raise unless the solver factors a saddle point (pypardiso, scipy,
PETSc direct).
Solve pipeline (issue #75)
- Breaking: new
EasyFEA.Solverspackage →from EasyFEA.Solvers import ...
(EasyFEA.Simulations.Solversremoved). - Breaking: custom simulations:
Get_terms(self, x, problemType=None)gets the
trial solution; read it withGet_u_v_a(problemType, x)(node values). Operators no
longer receiveuorelementsimplicitly. - Breaking: Newton settings →
simu.Solver_Set_Nonlinear_Strategy(Newton(...)), per
problem; anystrategy(problem, backend, x0)callable plugs in (e.g. a line search).
Non-convergence raisesNotConvergedError. - Breaking:
Get_x0removed →Solve(x0=...)gives a nonlinear start. - Custom simulations:
Get_dof_nand theResults_*methods have defaults; extend them
only to add results. - Breaking:
ResultraisesValueErroron an unknown name. Beam rotations are
urx, ury, urz; IncompressibleHyperElastic pressure ispressure. - Breaking:
Mesh_Optim(DoMesh, criterion, ...)takes a callable criterion;
Mesh_Optim_ZZ1andZZ1results removed → see
examples/LinearizedElasticity/MeshOptim1.py. - Fixes: a Dirichlet dof given twice under Newton; energies and loads after Newton or
Set_Iterread the committed solution; WeakForms on mixed meshes no longer singular. - Breaking:
TrialSolutionis renamedUnknownValues. - Internal:
Problem,Term, assembly and DOF layout live inSimulations/Problem/;
Solvers/_problem_protocol._ProblemreplacesSolvers.NonlinearProblem, which is no
longer exported.Simulations.TermandSimulations.ProblemTypeare unchanged.
Full Changelog: v7.3.0...v8.0.0