use crate::aggregate::Aggregate;
use crate::containers::finite_element_space::{FiniteElementSpace, SubFiniteElementSpace};
use crate::containers::model::{Model, SubModel};
use crate::error::Result;
use crate::handle::Handle;
pub(crate) fn spanning(
fes: &FiniteElementSpace,
mut make: impl FnMut(Handle<SubFiniteElementSpace>) -> Result<SubModel>,
) -> Result<Model> {
let mut model = Model::empty();
for zone in fes {
model.add_sub(Handle::new(make(zone.clone())?))?;
}
Ok(model)
}
pub(crate) fn single(sub: SubModel) -> Result<Model> {
let mut model = Model::empty();
model.add_sub(Handle::new(sub))?;
Ok(model)
}
pub mod contact;
pub mod damage;
pub mod dirichlet;
pub mod elasticity;
pub mod embedded;
pub mod fick;
pub mod heat_conduction;
pub mod interface_transfer;
pub mod mpc;
pub mod plasticity;
pub use crate::models::bernoulli::bernoulli;
pub use crate::models::boundary_transfer::boundary_transfer;
pub use crate::models::damage::damage_tc::damage_tc;
pub use crate::models::damage::mazars::mazars;
pub use crate::models::damage::sic_sic::damage_sic_sic;
pub use crate::models::flux::flux;
pub use crate::models::plasticity::drucker_prager::drucker_prager;
pub use crate::models::plasticity::gurson::gurson;
pub use crate::models::plasticity::ottosen::ottosen;
pub use crate::models::plasticity::viscous::creep_blackburn;
pub use crate::models::plasticity::viscous::creep_lemaitre;
pub use crate::models::plasticity::viscous::creep_norton;
pub use crate::models::plasticity::viscous::viscoplasticity_chaboche;
pub use crate::models::plasticity::viscous::viscoplasticity_lemaitre_chaboche;
pub use crate::models::plasticity::von_mises::plasticity_isotropic;
pub use crate::models::plasticity::von_mises::plasticity_perfect;
pub use crate::models::radiation::radiation;
pub use crate::models::shell::shell;
pub use crate::models::timoshenko::timoshenko;
pub use crate::models::truss::truss;
pub use contact::contact;
pub use damage::damage_with_law;
pub use dirichlet::dirichlet;
pub use elasticity::{elasticity, elasticity_with_symmetry};
pub use embedded::embedded;
pub use fick::{fick, fick_with_symmetry};
pub use heat_conduction::{heat_conduction, heat_conduction_with_symmetry};
pub use interface_transfer::interface_transfer;
pub use mpc::mpc;
pub use plasticity::plasticity_with_law;