FinEtoolsHeatDiff: Linear heat diffusion analysis
FinEtools
is a package
for basic operations on finite element meshes. FinEtoolsHeatDiff
is a package
using FinEtools
to solve linear heat conduction (diffusion) problems.
News
- 09/28/2023: Updated examples.
- 06/20/2023: Updated for FinEtools 7.0.
- 05/20/2023: Updated for Julia 1.9.
- 04/22/2023: Updated for generic FinEtools.
How to test the package
Here is a record of a session to install this package and test it. You should see something similar. The Git bash running on Windows or the Powershell could be used.
Clone the repo:
$ git clone https://github.com/PetrKryslUCSD/FinEtoolsHeatDiff.jl.git
Cloning into 'FinEtoolsHeatDiff.jl'...
[Further output suppressed...]
Change your working directory, and run Julia:
$ cd FinEtoolsHeatDiff.jl/
$ julia-1.9.0\bin\julia.exe
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.0 (2023-05-07)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
Activate and instantiate the environment:
(@v1.9) pkg> activate .; instantiate
Activating project at `C:\Users\...\FinEtoolsHeatDiff.jl`
Test the package:
(FinEtoolsHeatDiff) pkg> test
Testing FinEtoolsHeatDiff
[Output suppressed...]
Testing Running tests...
Test Summary: | Pass Total Time
Heat diffusion | 62 62 1m08.7s
68.849887 seconds (85.11 M allocations: 6.588 GiB, 2.97% gc time, 85.82% compilation time)
Testing FinEtoolsHeatDiff tests passed
(FinEtoolsHeatDiff) pkg>
Examples
The examples have their own environment. Change the folder to examples
.
Then activate and instantiate the examples
environment.
(FinEtoolsHeatDiff) pkg>
shell> cd examples
C:\Users\...\FinEtoolsHeatDiff.jl\examples
julia> using Pkg
julia> Pkg.activate("."); Pkg.instantiate()
Activating project at `C:\Users\...\FinEtoolsHeatDiff.jl\examples`
[Output suppressed...]
julia>
There are a number of examples, which may
be executed as described in the conceptual guide to
FinEtools
.
For instance
julia> include("steady_state/2-d\\Poisson_examples.jl"); Poisson_examples.allrun()