Skip to content

Commit

Permalink
change name to XCALibre and add basic docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
mberto79 committed Aug 29, 2024
1 parent 8c31d39 commit ee2e4c8
Show file tree
Hide file tree
Showing 75 changed files with 207 additions and 174 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Documentation

on:
push:
branches:
- main # update to match your development branch (master, main, dev, trunk, ...)
- dev-0.3-main
tags: '*'
pull_request:

jobs:
build:
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.10'
- uses: julia-actions/cache@v1
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
run: julia --project=docs/ docs/make.jl
2 changes: 1 addition & 1 deletion CASE_3D_BFS U.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Krylov
using KernelAbstractions
using CUDA
Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_BFS.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA

# bfs_unv_tet_15mm, 10mm, 5mm, 4mm, 3mm
Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_BFS_LES.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA


Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_BFS_LES_abhi.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA
using Adapt

Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_BFS_periodic.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FVM_1D
using XCALibre

mesh_file = "unv_sample_meshes/BFS_UNV_3D_hex_5mm.unv"
mesh = UNV3D_mesh(mesh_file, scale=0.001)
Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_BFS_periodic_U.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FVM_1D
using XCALibre
using CUDA
using Adapt

Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_box.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Krylov
using KernelAbstractions
using CUDA
Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_cascade_periodic.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FVM_1D
using XCALibre
using Adapt
using CUDA

Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_cylinder.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Krylov
using KernelAbstractions
using CUDA
Expand Down
2 changes: 1 addition & 1 deletion CASE_3D_cylinder_U.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Krylov
using KernelAbstractions
using CUDA
Expand Down
12 changes: 6 additions & 6 deletions CASE_MESH2_BFS.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Plots

using FVM_1D.Mesh2D
using FVM_1D.Plotting
using FVM_1D.Discretise
using FVM_1D.Calculate
using FVM_1D.Models
using FVM_1D.Solvers
using XCALibre.Mesh2D
using XCALibre.Plotting
using XCALibre.Discretise
using XCALibre.Calculate
using XCALibre.Models
using XCALibre.Solvers

using Krylov

Expand Down
2 changes: 1 addition & 1 deletion CASE_OF_CRMHL_Wingbody.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA


Expand Down
2 changes: 1 addition & 1 deletion CASE_OF_buildings.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA


Expand Down
2 changes: 1 addition & 1 deletion CASE_OF_pitzdaily.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA


Expand Down
2 changes: 1 addition & 1 deletion CASE_OF_sphere_laminar.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA


Expand Down
2 changes: 1 addition & 1 deletion CASE_OF_startrek.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA


Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_BFS.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA

# backwardFacingStep_2mm, backwardFacingStep_10mm
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_BFS_U.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Krylov
using KernelAbstractions
using CUDA
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_BFS_U_lowRe.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA

# backwardFacingStep_2mm, backwardFacingStep_10mm
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_BFS_given_profile.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA
using StaticArrays

Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_BFS_highRe.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Krylov
using KernelAbstractions
using CUDA
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_BFS_lowRe.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Krylov
using KernelAbstractions
using CUDA
Expand Down
6 changes: 3 additions & 3 deletions CASE_UNV_BFS_neural_network.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using Flux
using Statistics
using LinearAlgebra
Expand Down Expand Up @@ -56,9 +56,9 @@ struct Inflow{F,I,O,N,V,B} <: XCALibreUserFunctor
end
Adapt.@adapt_structure Inflow

# import FVM_1D.Discretise: update_boundary!
# import XCALibre.Discretise: update_boundary!

FVM_1D.Discretise.update_user_boundary!(
XCALibre.Discretise.update_user_boundary!(
BC::DirichletFunction{I,V}, faces, cells, facesID_range, time, config) where{I,V<:Inflow}= begin
# if time > 1 # for this to work need to add time to steady solvers! # to do
# return nothing
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_BFS_transonic.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
# using CUDA

# backwardFacingStep_2mm, backwardFacingStep_10mm
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_Cavity.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA

# quad and trig 40 and 100
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_flatplate.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Plots

using FVM_1D
using XCALibre

using Krylov

Expand Down
24 changes: 12 additions & 12 deletions CASE_UNV_flatplate_LKE_ERCOFTAC.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FVM_1D
using XCALibre
using CUDA

# backwardFacingStep_2mm, backwardFacingStep_10mm
Expand Down Expand Up @@ -31,49 +31,49 @@ model = Physics(
)

@assign! model momentum U (
FVM_1D.Dirichlet(:inlet, velocity),
XCALibre.Dirichlet(:inlet, velocity),
Neumann(:outlet, 0.0),
FVM_1D.Dirichlet(:wall, [0.0, 0.0, 0.0]),
FVM_1D.Dirichlet(:bottom, velocity),
XCALibre.Dirichlet(:wall, [0.0, 0.0, 0.0]),
XCALibre.Dirichlet(:bottom, velocity),
Neumann(:freestream, 0.0),
)

@assign! model momentum p (
Neumann(:inlet, 0.0),
FVM_1D.Dirichlet(:outlet, 0.0),
XCALibre.Dirichlet(:outlet, 0.0),
Neumann(:wall, 0.0),
Neumann(:bottom, 0.0),
Neumann(:freestream, 0.0)
)

@assign! model turbulence kl (
FVM_1D.Dirichlet(:inlet, kL_inlet),
XCALibre.Dirichlet(:inlet, kL_inlet),
Neumann(:outlet, 0.0),
FVM_1D.Dirichlet(:wall, 1e-15),
XCALibre.Dirichlet(:wall, 1e-15),
Neumann(:bottom, 0.0),
Neumann(:freestream, 0.0)
)

@assign! model turbulence k (
FVM_1D.Dirichlet(:inlet, k_inlet),
XCALibre.Dirichlet(:inlet, k_inlet),
Neumann(:outlet, 0.0),
FVM_1D.Dirichlet(:wall, 0.0),
XCALibre.Dirichlet(:wall, 0.0),
Neumann(:bottom, 0.0),
Neumann(:freestream, 0.0)
)

@assign! model turbulence omega (
FVM_1D.Dirichlet(:inlet, ω_inlet),
XCALibre.Dirichlet(:inlet, ω_inlet),
Neumann(:outlet, 0.0),
OmegaWallFunction(:wall),
Neumann(:bottom, 0.0),
Neumann(:freestream, 0.0)
)

@assign! model turbulence nut (
FVM_1D.Dirichlet(:inlet, k_inlet/ω_inlet),
XCALibre.Dirichlet(:inlet, k_inlet/ω_inlet),
Neumann(:outlet, 0.0),
FVM_1D.Dirichlet(:wall, 0.0),
XCALibre.Dirichlet(:wall, 0.0),
Neumann(:bottom, 0.0),
Neumann(:freestream, 0.0),
)
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_flatplate_fixedT.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Plots

using FVM_1D
using XCALibre

using Krylov

Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_flatplate_fixedT_KOmega.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Plots

using FVM_1D
using XCALibre

using Krylov

Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_flatplate_highRe.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA

# backwardFacingStep_2mm, backwardFacingStep_10mm
Expand Down
2 changes: 1 addition & 1 deletion CASE_UNV_flatplate_lowRe.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre


# backwardFacingStep_2mm, backwardFacingStep_10mm
Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA # Run this if using NVIDIA GPU
# using AMDGPU # Run this if using AMD GPU

Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_LES.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA

# quad, backwardFacingStep_2mm, backwardFacingStep_10mm, trig40
Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_M09.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
# using CUDA # Run this if using NVIDIA GPU
# using AMDGPU # Run this if using AMD GPU

Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_RANS.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA


Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_U.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA

# quad, backwardFacingStep_2mm, backwardFacingStep_10mm, trig40
Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_URANS.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre


# quad, backwardFacingStep_2mm, backwardFacingStep_10mm, trig40
Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_U_oscilating.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
using CUDA
using StaticArrays

Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_heated.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Plots
using FVM_1D
using XCALibre
# using CUDA # Run this if using NVIDIA GPU
# using AMDGPU # Run this if using AMD GPU

Expand Down
2 changes: 1 addition & 1 deletion CASE_cylinder_heated_unsteady.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# using Plots
using FVM_1D
using XCALibre
# using CUDA # Run this if using NVIDIA GPU
# using AMDGPU # Run this if using AMD GPU

Expand Down
Loading

0 comments on commit ee2e4c8

Please sign in to comment.