Skip to content

v8.0.0

Choose a tag to compare

@matnoel matnoel released this 23 Nov 08:45
· 73 commits to main since this release

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,
    so Result(...)[nodes] lines up as in serial. mesh.globalNodes gives each node's
    global id: read a whole-mesh nodal file with values[mesh.globalNodes].
  • Every simulation solves over the ranks as in serial: PhaseField, Thermal, Beam and
    WeakForms join Elastic, HyperElastic and InElastic. DIC, Mesh.Merge and beam
    connections refuse a partitioned mesh.
  • Breaking: Reduce_sum, Reduce_min, Reduce_max, Allgather take 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
    unchanged A costs a solve, not a factorisation.
  • Movie_simu, and GLTF, USD, Vizir Save_simu, need a gathered simulation, as
    Plot_Energy. Paraview .pvd timesteps are the iteration indices.

Saved iterations (issue #73)

  • Under MPI each rank saves its own rows in Rank{r}/; Load_Simu resumes on the same
    number of ranks, and a serial Load_Simu reads the whole run.
  • Breaking: runs saved per rank before 8.0 (_rank{r} files) are no longer read;
    partitioned Mesh.Save writes folder/Rank{r}/filename.pickle.
  • Beam simulations and WeakForms using a module-level @BiLinearForm/@LinearForm can
    be saved.

Linear system (issue #74)

  • Breaking: TimeSchemes package replaces AlgoType and simu.algo →
    Solver_Set_Hyperbolic_Algorithm(dt, TimeSchemes.Hyperbolic.HHT, alpha=0.1). HHT
    now damps (the former AlgoType.hht did not); custom schemes subclass a scheme.
  • Breaking: Get_K_C_M_F removed → Assembly(problemType) returns K, C, M, F.
  • Breaking: Calc_Energy(slot, ...) takes "K" (strain) or "M" (kinetic), not a
    matrix.
  • Breaking: mesh.orphanNodes removed: 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.Solvers package → from EasyFEA.Solvers import ...
    (EasyFEA.Simulations.Solvers removed).
  • Breaking: custom simulations: Get_terms(self, x, problemType=None) gets the
    trial solution; read it with Get_u_v_a(problemType, x) (node values). Operators no
    longer receive u or elements implicitly.
  • Breaking: Newton settings → simu.Solver_Set_Nonlinear_Strategy(Newton(...)), per
    problem; any strategy(problem, backend, x0) callable plugs in (e.g. a line search).
    Non-convergence raises NotConvergedError.
  • Breaking: Get_x0 removed → Solve(x0=...) gives a nonlinear start.
  • Custom simulations: Get_dof_n and the Results_* methods have defaults; extend them
    only to add results.
  • Breaking: Result raises ValueError on an unknown name. Beam rotations are
    urx, ury, urz; IncompressibleHyperElastic pressure is pressure.
  • Breaking: Mesh_Optim(DoMesh, criterion, ...) takes a callable criterion;
    Mesh_Optim_ZZ1 and ZZ1 results removed → see
    examples/LinearizedElasticity/MeshOptim1.py.
  • Fixes: a Dirichlet dof given twice under Newton; energies and loads after Newton or
    Set_Iter read the committed solution; WeakForms on mixed meshes no longer singular.
  • Breaking: TrialSolution is renamed UnknownValues.
  • Internal: Problem, Term, assembly and DOF layout live in Simulations/Problem/;
    Solvers/_problem_protocol._Problem replaces Solvers.NonlinearProblem, which is no
    longer exported. Simulations.Term and Simulations.ProblemType are unchanged.

Full Changelog: v7.3.0...v8.0.0