ExodusUnitfulExt

This extension can be utilized to add units to values read in from exodusII files.

Exodus.read_valuesMethod
read_values(
    exo::ExodusDatabase,
    t::Type{GlobalVariable},
    timestep::Integer,
    unit::Unitful.FreeUnits
) -> Any

Wrapper method for global variables around the main readvalues method readvalues(exo::ExodusDatabase, t::Type{GlobalVariable}, timestep::Integer) = read_values(exo, t, timestep, 1, 1)

Example: read_values(exo, GlobalVariable, 1)

source
Exodus.read_valuesMethod
read_values(
    exo::ExodusDatabase,
    t::Type{NodalVariable},
    timestep::Integer,
    name::String,
    unit::Unitful.FreeUnits
) -> Any

Wrapper method for nodal variables

source
Exodus.read_valuesMethod
read_values(
    exo::ExodusDatabase,
    type::Type{V<:Exodus.AbstractExodusVariable},
    timestep::Integer,
    id::Integer,
    var_index::Integer,
    unit::Unitful.FreeUnits
) -> Any
source
Exodus.read_valuesMethod
read_values(
    exo::ExodusDatabase,
    _::Type{V<:Union{ElementVariable, NodalVariable, NodeSetVariable, SideSetVariable}},
    time_step::Integer,
    id::Integer,
    var_name::String,
    unit::Unitful.FreeUnits
) -> Any
source
Exodus.read_valuesMethod
read_values(
    exo::ExodusDatabase,
    _::Type{V<:Union{ElementVariable, NodeSetVariable, SideSetVariable}},
    time_step::Integer,
    set_name::String,
    var_name::String,
    unit::Unitful.FreeUnits
) -> Any
source
Exodus.write_valuesMethod
write_values(
    exo::ExodusDatabase,
    t::Type{GlobalVariable},
    timestep::Integer,
    var_values::Vector{<:Quantity}
)

Wrapper method for global variables around the main writevalues method writevalues( exo::ExodusDatabase, t::Type{GlobalVariable}, timestep::Integer, varvalues::Vector{<:AbstractFloat} ) = writevalues(exo, t, timestep, 1, 1, var_values)

Note: you need to first run writenumberof_variables(exo, GlobalVariable, n) where n is the number of variables.

Example: writenumberofvariables(exo, GlobalVariable, 5) writevalues(exo, GlobalVariable, 1, [10.0, 20.0, 30.0, 40.0, 50.0])

source
Exodus.write_valuesMethod
write_values(
    exo::ExodusDatabase,
    t::Type{NodalVariable},
    timestep::Integer,
    var_name::String,
    var_values::Vector{<:Quantity}
) -> Any

Wrapper method for nodal variables

source
Exodus.write_valuesMethod
write_values(
    exo::ExodusDatabase,
    type::Type{V<:Exodus.AbstractExodusVariable},
    timestep::Integer,
    id::Integer,
    var_index::Integer,
    var_values::Vector{<:Quantity}
)
source
Exodus.write_valuesMethod
write_values(
    exo::ExodusDatabase,
    type::Type{V<:Exodus.AbstractExodusVariable},
    timestep::Integer,
    id::Integer,
    var_name::String,
    var_value::Vector{<:Quantity}
) -> Any
source
Exodus.write_valuesMethod
write_values(
    exo::ExodusDatabase,
    _::Type{V<:Exodus.AbstractExodusVariable},
    time_step::Integer,
    set_name::String,
    var_name::String,
    var_value::Vector{<:Quantity}
) -> Any
source