2190 Commits

Author SHA1 Message Date
Jukka Aho d431b54cb6 fix(mesh): align Hex8 refinement with Mesh{N,T} constructors
Use explicit `Mesh{8, Hex8}` signatures, SPDX banner lines, and the keyword
`Mesh{T}(nodes, conn; ...)` outer constructor after the mesh core refactor.

- Update docstrings and method signatures from `Mesh{Hex8}` to `Mesh{8, Hex8}`.
- Build refined meshes via `element_sets`/`node_sets` keywords.
2026-05-09 17:39:54 +03:00
Jukka Aho 025bed90af refactor(mesh): slim Mesh core and harden surface extraction
Strip experimental permutation/coloring/ghost/named-ID baggage from the
concrete mesh type, adopt SPDX headers, and route boundary extraction through
an explicit `surface_topology` trait with clearer limitations.

- Replace the legacy banner with SPDX lines and tighten the struct/docstring to
  the fields that actually ship today.
- Drop bandwidth/permutation maps, industrial ID dictionaries, and parallel
  coloring/ghost sets from `Mesh` plus their helpers.
- Introduce `surface_topology(::Type{<:AbstractTopology})` for Tet/Hex volumes
  and guard `extract_surface` with `hasmethod` errors for unsupported solids.
- Remove `create_node_set_from_element_set!` (surface workflows should build sets
  explicitly or use topology-aware helpers later).
- Document that `extract_surface` still assumes the first `nnodes(FaceT)` nodes
  per volume element describe the boundary patch.
2026-05-09 17:38:39 +03:00
Jukka Aho a5f71c296a chore(mesh): remove standalone graph ordering helpers
Delete the LightGraphs-based RCM/coloring experiments that were not included
from `JuliaFEM.jl`.

- Drop `src/mesh/graph_ordering.jl`.
2026-05-09 17:38:15 +03:00
Jukka Aho d9779490f8 chore(mesh): delete unused gmsh_jll wrapper stub
Remove the optional Gmsh API wrapper that never shipped from the package entry
manifest.

- Drop `src/mesh/gmsh_wrapper.jl`.
2026-05-09 17:38:04 +03:00
Jukka Aho 8bdaa62fc2 chore(mesh): remove circular plate mesh generator
Delete the polar fan mesher that was not wired into `JuliaFEM.jl` includes.

- Drop `src/mesh/circular.jl` (`create_circular_plate_mesh`).
2026-05-09 17:37:50 +03:00
Jukka Aho 8f34707cf5 docs(mesh): clarify mixed topology and kernel ownership
Document that multi-topology meshes are still unsupported and replace the old
`Physics` wording with kernel-centric language about shared meshes.

- Swap the future `MixedMesh` bullet for an explicit limitation note.
- Describe mesh ownership vs kernel references for multiphysics reuse.
2026-05-09 17:37:08 +03:00
Jukka Aho 42872ffd06 docs(mesh): tighten README for current Mesh surface
Replace marketing-heavy prose with a short map of the active files, the
parametric `Mesh{N,T}` role, refinement usage, and where import/tests live now.

- Drop duplicated API inventories and speculative future-work bullets.
- Point readers at `src/io/` for ingest and `llm/design/legacy-tests/mesh/` for
  retired parallel/coloring coverage.
2026-05-09 17:36:32 +03:00
Jukka Aho 561fcfbcd0 refactor(materials): drop Type-instance forwarding for state traits
Remove the `required_state_variables(::Type{<:AbstractMaterial})` shim that
instantiated materials just to query traits; callers should pass instances or
specialize on concrete types directly.

- Delete the default `required_state_variables(::Type{T}) = …` definition from
  `traits.jl`.
2026-05-09 17:36:16 +03:00
Jukka Aho bc82a60228 feat(materials): extend compositional state-variable registry
Add typed slots for damage equivalent strain, eigenstrain, creep strain, and
indexed Chaboche backstress components so advanced models can declare IP state
without ad hoc symbols.

- Define `DamageEquivalentStrain`, `Eigenstrain`, `CreepStrain`, and
  `ChabocheAlpha{N}` with `state_variable_type` / `default_symbol` hooks.
2026-05-09 17:36:07 +03:00
Jukka Aho 98d08b6bc9 refactor(materials): dedupe PerfectPlasticity fourth-order helper
Stop defining `symmetric_identity_tensor` inside `perfect_plasticity.jl` now
that `materials/symmetric_fourth_identity.jl` provides the shared definition.

- Remove `include(\"abstract_material.jl\")`.
- Delete the local `symmetric_identity_tensor` implementation (call sites keep
  resolving against the earlier include in `JuliaFEM.jl`).
2026-05-09 17:35:41 +03:00
Jukka Aho 14f3baf24e feat(materials): wire NeoHookean traits and NamedTuple stress dispatch
Expose physics/state-variable traits for hyperelastic assembly and accept
`NamedTuple` IP states alongside `nothing` while sharing one implementation.

- Drop the stale `abstract_material.jl` include.
- Declare `supported_physics` / `required_state_variables` for 3D elasticity.
- Factor `_compute_stress_neo_hookean` and add a `compute_stress` path for
  `state_old::NamedTuple`.
- Normalize `where {T}` clauses on public stress APIs.
2026-05-09 17:35:22 +03:00
Jukka Aho 5d8a821be5 refactor(materials): drop LinearElastic abstract include and state_type
`AbstractElasticMaterial` already comes from `materials/api.jl`, and IP state
is inferred via `required_state_variables`, so drop the stale include and
`state_type` hook.

- Remove `include(\"abstract_material.jl\")` and redundant trait comments.
- Delete `state_type(::Type{LinearElastic}) = EmptyState`.
2026-05-09 17:34:38 +03:00
Jukka Aho 1482fe1b5e docs(materials): expand trait docs and align SPDX header
Replace the legacy banner with SPDX lines and document how each
`MaterialBehavior` maps to assembly and `GlobalMaterialCache`, dropping the
unused `AbstractMaterialState` / `state_type` surface in favor of
`material_state_type` NamedTuples.

- Switch the file banner to `SPDX-FileCopyrightText` /
  `SPDX-License-Identifier: MIT`.
- Remove `AbstractMaterialState`, `EmptyState`, and `state_type`; point readers
  at `material_state_type` / `required_state_variables`.
- Enlarge `StatelessConstantTangent`, `StatelessStrainDependent`, and
  `StatefulStrainDependent` docstrings with representative models, tangent
  caveats, and explicit coverage gaps.
2026-05-09 17:33:27 +03:00
Jukka Aho 1113bdfb95 docs(agents): point SPDX headers to CONTRIBUTING
Add a workflow bullet so agents keep SPDX lines in file-type-appropriate
comments and defer details to `docs/CONTRIBUTING.md`.
2026-05-09 17:32:45 +03:00
Jukka Aho 58424ca93f docs(contributing): document SPDX headers per file type
Spell out that SPDX tags must use native comments (`#` in code and TOML,
HTML comments in Markdown/Quarto) and call out formats like JSON that cannot
carry in-file blocks.

- Add an SPDX section with concrete examples and the strict-JSON caveat.
2026-05-09 17:32:29 +03:00
Jukka Aho a31ff772ba chore(materials): remove superseded material_cache.jl
Delete the older compositional cache draft now replaced by
`global_material_cache.jl` + assembler-local workspaces.

- Drop `src/materials/material_cache.jl`.
2026-05-09 17:26:40 +03:00
Jukka Aho 580b566c61 chore(materials): delete unfinished finite-strain plasticity prototype
Remove the unused multiplicative-decomposition J2 sketch that was never wired
into `JuliaFEM.jl` includes.

- Drop `src/materials/finite_strain_plasticity.jl`.
2026-05-09 17:26:31 +03:00
Jukka Aho da5eea0586 chore(materials): remove duplicate abstract material module
Delete the stale `AbstractMaterial` hierarchy file that duplicated the trait
surface now defined alongside concrete models.

- Drop `src/materials/abstract_material.jl` (unused include target).
2026-05-09 17:25:18 +03:00
Jukka Aho b06635f094 chore(legacy): delete unused modal solver stubs
Remove the standalone eigen/modal pipeline that was never reached from
`Legacy.jl`.

- Drop `src/legacy/solvers_modal.jl` (problem orchestration + Lanczos hooks).
2026-05-09 17:25:01 +03:00
Jukka Aho 0b4b06a702 chore(legacy): remove orphaned truss Problem implementation
Delete the Dict-field truss assembler that remained disconnected from the
`Legacy` entry module.

- Drop `src/legacy/problems_truss.jl`.
2026-05-09 17:24:48 +03:00
Jukka Aho df3a409d22 chore(legacy): delete unused 3D mortar Problem implementation
Remove the large projection/mapping routines that never shipped from `Legacy.jl`.

- Drop `src/legacy/problems_mortar_3d.jl`.
2026-05-09 17:24:40 +03:00
Jukka Aho 4736827495 chore(legacy): delete unused 2D mortar Problem glue
Remove the standalone mortar/contact helpers that were outside `Legacy` includes.

- Drop `src/legacy/problems_mortar.jl`.
2026-05-09 17:24:32 +03:00
Jukka Aho a3bb97c7a6 chore(legacy): remove orphaned heat Problem implementation
Delete the legacy transient heat `Problem` stack that never shipped inside the
opt-in module graph.

- Drop `src/legacy/problems_heat.jl`.
2026-05-09 17:23:50 +03:00
Jukka Aho 5b84947d06 chore(legacy): delete unused 2D elasticity Problem helpers
Remove the plane-stress/strain specialization layer that duplicated the 3D
path but stayed disconnected from `Legacy` includes.

- Drop `src/legacy/problems_elasticity_2d.jl`.
2026-05-09 17:23:36 +03:00
Jukka Aho b36da58d90 chore(legacy): remove orphaned elasticity Problem module
Delete the Dict-based continuum elasticity `Problem` implementation that was
never wired into `Legacy.jl`.

- Drop `src/legacy/problems_elasticity.jl` (assembly over legacy elements).
2026-05-09 17:23:24 +03:00
Jukka Aho b5d84d25bd chore(legacy): delete unused 3D contact Problem implementation
Remove the mortar-style 3D contact assembly path that lived outside the active
`Legacy` include list.

- Drop `src/legacy/problems_contact_3d.jl` (projection helpers + assembler glue).
2026-05-09 17:22:23 +03:00
Jukka Aho d444bd1713 chore(legacy): delete unused 2D contact Problem stub
Remove the standalone `Contact` boundary-problem implementation that was not
included from `Legacy.jl`.

- Drop `src/legacy/problems_contact.jl`.
2026-05-09 17:22:00 +03:00
Jukka Aho 97d840c616 chore(legacy): drop orphaned physics_api scaffolding
Remove the standalone abstract elasticity layer that duplicated concepts now
owned by `src/physics/` and was never included from `Legacy.jl`.

- Delete `src/legacy/physics_api.jl` (`AbstractMesh`, `AbstractMaterial`,
  formulation stubs, and helper hooks).
2026-05-09 17:21:39 +03:00
Jukka Aho a2fb782820 chore(legacy): remove unused FEMBase stub module
Delete the empty `FEMBase` compatibility shell that was never wired into
`Legacy.jl` includes.

- Drop `src/legacy/fembase_compat.jl`.
2026-05-09 17:21:26 +03:00
Jukka Aho ca1bc0b81e fix(legacy): wire Abaqus shim to Legacy surface helper
Stop re-exporting `create_surface_elements` from top-level `JuliaFEM`
(which no longer defines it) and bind the compatibility submodule against the
Legacy implementation instead.

- Replace `using JuliaFEM: create_surface_elements` with `import
  ..create_surface_elements` inside `Legacy.Abaqus`.
2026-05-09 17:20:28 +03:00
Jukka Aho c02af32e75 refactor(io): use Logging for Gmsh reader progress
Replace unconditional `println` chatter with structured `@info` events so
library callers can filter noise via the standard logging pipeline.

- Log the filename when ingest starts and emit a single summary record with
  node/element counts plus physical group keys.
2026-05-09 17:20:04 +03:00
Jukka Aho 148ad8f5ed docs(io): describe default Gmsh reader and Legacy ingest
Rewrite the module README now that Abaqus/Code_Aster stacks live behind the
opt-in Legacy flag and only Gmsh ASCII ingest ships unconditionally.

- Document `JULIAFEM_ENABLE_LEGACY=1` and `src/legacy/io/` for vendor parsers.
- Focus the file list on `gmsh_reader.jl` / `GmshReader` instead of deleted stubs.
- Trim emoji/status tables and stale usage snippets; note roadmap for a native
  `.inp` path aligned with `Mesh{T}` / `create_elements!`.
2026-05-09 17:19:45 +03:00
Jukka Aho ac2a747cc7 chore(io): delete RMED result-file helpers
Remove the lightweight HDF5 wrappers around Code_Aster `.rmed` post-processing.

- Drop `RMEDFile`, `aster_read_nodes`, and related helpers from
  `src/io/read_aster_results.jl`.
2026-05-09 17:19:17 +03:00
Jukka Aho 1cdae68f4f chore(io): remove Code_Aster MED mesh reader implementation
Delete the MED/HDF5 parsing routines that built Dict meshes from Code_Aster
exports.

- Drop `src/io/read_aster_mesh.jl` (`aster_parse_nodes`, connectivity walks,
  `aster_read_mesh` glue).
2026-05-09 17:19:04 +03:00
Jukka Aho 004a1e61fd chore(io): delete Dict-backed Abaqus model AST
Remove the mutable `Model`/`Mesh` containers and parse helpers that powered the
legacy `.inp` ingestion stack.

- Drop `src/io/parse_model.jl` (material/step/boundary pseudo-types and reader
  state machine); identical functionality remains opt-in under `Legacy`.
2026-05-09 17:18:49 +03:00
Jukka Aho fa113717b3 chore(io): remove in-tree Abaqus mesh parser
Delete the hand-rolled `.inp` mesh scanner that mapped Abaqus element codes to
legacy JuliaFEM symbols.

- Drop `src/io/parse_mesh.jl` (element trait tables, node-set parsing, section
  dispatch) now duplicated under `src/legacy/io/` behind the opt-in flag.
2026-05-09 17:18:35 +03:00
Jukka Aho 844797f2d7 chore(io): drop global Abaqus keyword registration helpers
Remove the mutable global register used by the retired `.inp` parser to tag
top-level keywords.

- Delete `register_abaqus_keyword` / `is_abaqus_keyword_registered` from
  `src/io/keyword_register.jl` (Legacy carries its own registration path).
2026-05-09 17:18:06 +03:00
Jukka Aho 8f79706802 chore(io): remove unused JuliaFEM.IO submodule stub
Delete the nested `IO` module that only re-exported the retired Abaqus glue;
the package entry point now includes `gmsh_reader.jl` directly.

- Remove `src/io/io.jl` (SparseArrays/Logging imports and `abaqus_reader`
  forwarding).
2026-05-09 17:14:17 +03:00
Jukka Aho ef0ad6672c chore(io): remove Dict-based surface element factory
Drop the Abaqus side-mapping tables and helpers that produced boundary
facets from raw mesh dictionaries.

- Delete `create_surface_element` / `create_surface_elements` and the static
  `element_mapping` entry points under `src/io/create_surface_elements.jl`.
2026-05-09 17:13:22 +03:00
Jukka Aho 2596d33420 chore(io): delete MED/Code_Aster element glue tables
Remove the standalone connectivity permutation maps and element-name tables
that wired Code_Aster MED exports into legacy JuliaFEM symbols.

- Drop `src/io/aster_reader.jl` from the default tree (no longer pulled into
  `JuliaFEM`).
2026-05-09 17:13:04 +03:00
Jukka Aho a170b0802a chore(io): remove JuliaFEM-local Abaqus mesh adapters
Delete the thin wrappers that translated `AbaqusReader` output into the
pre-2.0 `Mesh`/`Element` bag-of-fields API.

- Drop `abaqus_read_mesh`, legacy `create_surface_elements`, and nodal-element
  helpers from `src/io/abaqus_reader.jl` (superseded by `Legacy` tooling).
2026-05-09 17:12:48 +03:00
Jukka Aho d2b67e284f chore(io): delete example-model downloader helper
Remove `abaqus_download`, which depended on environment-configured URLs and
was only useful for CI/tutorial fetches of vendor `.inp` decks.

- Drop `src/io/abaqus_download.jl`; Legacy retains its own copy when enabled.
2026-05-09 17:12:23 +03:00
Jukka Aho ab5aed8dea chore(io): remove Code_Aster reader module stub
Remove the HDF5-backed `AsterReader` wrapper from the default package tree so
the slim IO surface only exposes the maintained mesh ingest path.

- Drop `src/io/AsterReader.jl` (mesh/results includes are no longer shipped here).
2026-05-09 17:10:35 +03:00
Jukka Aho cab05be2b2 chore(io): remove legacy AbaqusReader module stub
Drop the thin `AbaqusReader` wrapper that only forwarded includes into the old
parser stack; opt-in Abaqus ingestion now ships from `Legacy` instead.

- Delete the standalone `src/io/AbaqusReader.jl` entry module (Nullables-era).
2026-05-09 17:09:12 +03:00
Jukka Aho d5fe01b745 docs(geometry): link strain helpers and fix LICENSE URL
Update the SPDX banner to `LICENSE.md` and cross-reference `extract_strain`
from the small-strain docstring so readers know where gradients are consumed.
2026-05-09 17:08:54 +03:00
Jukka Aho fc7ce7ec5b docs(geometry): refresh Jacobian doc examples for current APIs
Bring the inline examples in `compute_jacobian` / `physical_derivatives`
docstrings in line with parametrized reference topologies and `Lagrange{1}`,
and drop a broken cross-reference to external tensor types.

- Point the SPDX banner at `LICENSE.md` on the default branch.
- Use `Triangle{3}` / `Tetrahedron{4}` instances with `Lagrange{1}` in the
  derivative snippets.
- Replace the `[Tensor](@ref)` bullet with an explicit note that tensors come
  from the **Tensors.jl** dependency.
- Illustrate quadrature iteration from a concrete `Tri3()` topology handle.
2026-05-09 17:08:41 +03:00
Jukka Aho 67d367920f docs(fields): plain headings in LocalField docstring
Replace bold markdown labels on the dynamic vs quasi-static bullet sections
with plain prose headings so field docs match the repository style guide.
2026-05-09 17:08:23 +03:00
Jukka Aho 5aa529473d chore(fields): drop FEMBase-style container fields module
Remove the old Dict-/tuple-backed field structs and helpers that lived next
to the modern quantity tags; they duplicated legacy FEMBase concepts and are
not part of the type-stable 0.x surface.

- Delete `DCTI`, `DVTI`, `DCTV`, `DVTV`, `CVTV`, `DVTId`, `DVTVd`, and the
  `field` / `interpolate`/`new_field` factories carried in this file.
- Drop `AbstractField` value/container overloads (`length`, `getindex`,
  `update_field!`, …) that assumed a `.data` payload on every subtype.
- Keep `AbstractField` definitions and docs in `fields/api.jl`; legacy
  variants remain behind `Legacy` where needed (`dcti_dvti_fields.jl`).
2026-05-09 17:08:03 +03:00
Jukka Aho 8064e86737 feat(fields): expand AbstractField tags and documentation
Extend the field vocabulary with diffusion/Darcy/mixed facet tags while
making `dofs_per_node` / `quantity_type` expectations explicit and dropping
legacy `Physics(...)` snippets.

- Clarify `dofs_per_node` as components per primary entity (historical name)
  and document `quantity_type` as part of the `AbstractField` contract.
- Add `MoistureContent`, `PressurePotential`, `RT0FaceFlux`, and `Nedelec1Edge`
  with matching `dofs_per_node` / `quantity_type` hooks.
- Point concrete usage at active kernels and grouped tests; note beam/shell
  tags as not wired in the default 0.x build.
- Prefer plain prose over bold emphasis in nearby docstrings.
2026-05-09 17:07:14 +03:00
Jukka Aho 37abd55c34 refactor(elements): centralize interpolation code generation
Consolidate the four `@generated` interpolators onto one Expr toolkit so
scalar/vector branching and flat-DOF indexing stay consistent, and fix the
broken vector arm in `interpolate_field_value`.

- Add compile-time Expr helpers (`_classify_field_quantity`,
  `_per_node_dof_exprs`, `_value_expr`, `_grad_expr`, `_field_dof_count`,
  `_classify_dofset_field`) shared by `interpolate_fields`,
  `interpolate_field`, `interpolate_field_value`, and
  `interpolate_local_fields`.
- Fix `interpolate_field_value` vector dispatch: the generated branch
  compared `quantity_type` as if it were a type value instead of using the
  field quantity from `quantity_type(field_spec)`.
- Refresh module docs (four entry points + helper layering); drop a long
  redundant doc example under `interpolate_local_fields`.
2026-05-09 17:06:57 +03:00