Flower.jl 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. # __precompile__()
  2. module Flower
  3. using Reexport
  4. import Base.<
  5. import Base.isnan
  6. import Base.*
  7. import Base.+
  8. import Base.-
  9. import Base.abs
  10. import Base.OneTo
  11. import Base.ones
  12. import Base.zeros
  13. import Base.reshape
  14. # import Base.union
  15. # @reexport using Base.Union
  16. @reexport using Printf
  17. @reexport using Base.Threads
  18. @reexport using LinearAlgebra
  19. @reexport using SparseArrays
  20. @reexport using Parameters
  21. @reexport using StaticArrays
  22. @reexport using OffsetArrays
  23. @reexport using Roots
  24. # @reexport using SpecialFunctions
  25. @reexport using GeometryBasics
  26. @reexport using GeoInterface
  27. # @reexport using LibGEOS
  28. @reexport import LibGEOS #avoids warnings like:
  29. # "WARNING: both MUMPS and Roots export "solve!"; uses of it in module Flower must be qualified"
  30. # @reexport using HDF5
  31. @reexport import YAML
  32. @reexport using Test
  33. # @reexport using MPI
  34. @reexport using PropertyDicts
  35. # @reexport using PrettyTables
  36. # @reexport using Polynomials
  37. @reexport using Peaks
  38. # @reexport using Profile
  39. # @reexport using ProfileCanvas
  40. # @reexport using BenchmarkTools
  41. @reexport using IterativeSolvers #for gmres
  42. # @reexport using ConvergenceHistory #for reserve!
  43. @reexport using Statistics #for mean
  44. # @reexport using MPI
  45. # @reexport using MUMPS
  46. @reexport import MUMPS
  47. @reexport using SpecialFunctions #not @reexport import SpecialFunctions
  48. # using SpecialFunctions
  49. # #Long version
  50. # @reexport using Printf
  51. # # @reexport using Statistics
  52. # @reexport using Base.Threads
  53. # @reexport using LinearAlgebra
  54. # @reexport using SparseArrays
  55. # @reexport using BenchmarkTools
  56. # @reexport using Parameters
  57. # @reexport using StaticArrays
  58. # @reexport using OffsetArrays
  59. # @reexport using Roots
  60. # @reexport using SpecialFunctions
  61. # # @reexport using Test
  62. # # @reexport using CairoMakie
  63. # # @reexport using LaTeXStrings
  64. # # @reexport using Gnuplot
  65. # @reexport using IterativeSolvers
  66. # # @reexport using LsqFit
  67. # # @reexport using Polynomials
  68. # # @reexport using JLD
  69. # # @reexport using Peaks
  70. # @reexport using GeometryBasics
  71. # @reexport using GeoInterface
  72. # @reexport using LibGEOS
  73. # @reexport using PackageCompiler
  74. ###################################################################################################
  75. # For plotting with python
  76. ###################################################################################################
  77. # @reexport using PyCall
  78. # @reexport using LaTeXStrings
  79. # @reexport using PyPlot
  80. # const anim = PyNULL()
  81. # # const plt = PyNULL()
  82. # const mpl_colors = PyNULL()
  83. # const mpl_tickers = PyNULL()
  84. # const pd = PyNULL()
  85. # # from matplotlib.colors import BoundaryNorm
  86. # # from matplotlib.ticker import MaxNLocator
  87. # function __init__()
  88. # copy!(anim, pyimport_conda("matplotlib.animation", "matplotlib"))
  89. # # copy!(plt, pyimport_conda("matplotlib.pyplot", "matplotlib"))
  90. # copy!(mpl_colors, pyimport_conda("matplotlib.colors", "matplotlib"))
  91. # copy!(mpl_tickers, pyimport_conda("matplotlib.ticker", "matplotlib"))
  92. # copy!(pd, pyimport_conda("pandas", "pandas"))
  93. # end
  94. ###################################################################################################
  95. include("types.jl")
  96. include("types_PDI.jl")
  97. include("init.jl")
  98. include("common.jl")
  99. include("levelset.jl")
  100. include("cutcell.jl")
  101. include("operators.jl")
  102. include("operators_coupled.jl")
  103. include("heat.jl")
  104. include("heat_coupled.jl")
  105. include("navier_stokes_coupled.jl")
  106. include("navier_stokes_coupled_pressure_velocity.jl")
  107. include("run.jl")
  108. include("common_run.jl")
  109. include("contact_line.jl")
  110. include("optimize.jl")
  111. # include("viz.jl")
  112. include("tools.jl")
  113. include("electrolysis_init.jl")
  114. include("electrolysis_utils.jl")
  115. include("electrolysis.jl")
  116. include("electrolysis_2.jl")
  117. include("electrolysis_operators.jl")
  118. include("electrolysis_tests.jl")
  119. include("electrolysis_print.jl")
  120. include("bicgstabl_flower.jl")
  121. include("run_profile.jl") #for profiling
  122. include("one_fluid.jl")
  123. include("surface_tension_LS.jl")
  124. include("surface_tension_VOF.jl")
  125. include("interface_transport.jl")
  126. include("solve_one_fluid.jl")
  127. include("compute_mass_transfer_rate.jl")
  128. include("test_functions.jl")
  129. include("convection.jl")
  130. include("post_processing.jl")
  131. include("fill_struct.jl")
  132. ###################################################################################################
  133. # For plotting with python
  134. ###################################################################################################
  135. # include("electrolysis_plot.jl")
  136. ###################################################################################################
  137. # include("Plotpython.jl")
  138. # using .Plotpython
  139. # include("electrolysis_viz.jl")
  140. export_all()
  141. #this is a second test
  142. end