Skip to content

Commit

Permalink
moved visualization to JFVMviz.jl package
Browse files Browse the repository at this point in the history
  • Loading branch information
simulkade committed Jun 7, 2018
1 parent 712b7ed commit 2216826
Show file tree
Hide file tree
Showing 3 changed files with 250 additions and 244 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
Pkg.checkout("JFVM")
```
+ 3D visualization requires calling Mayavi via PyCall. It made too many problems recently, so I have decided to disable it until I find a better solution for 3D visualization. Suggestions/PRs are very welcome.
+ I have decided to move the visualization to a new package [JFVMvis.jl](https://github.com/simulkade/JFVMvis.jl.git), that ypu need to install by:
```
Pkg.clone("https://github.com/simulkade/JFVMvis.jl")
```

## Equations
You can solve the following PDE (or a subset of it):
Expand Down Expand Up @@ -66,7 +70,7 @@ I have written a short [tutorial](http://nbviewer.ipython.org/github/simulkade/J
## In action
Copy and paste the following code to solve a transient diffusion equation:
```julia
using JFVM
using JFVM, JFVMvis
Nx = 10
Lx = 1.0
m = createMesh1D(Nx, Lx)
Expand Down
14 changes: 8 additions & 6 deletions src/JFVM.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
__precompile__()

module JFVM

global mumps_solver = 0
using PyPlot
# using PyPlot
try
import MUMPS
mumps_solver = MUMPS
Expand All @@ -22,17 +24,17 @@ end
import Base: +, -, *, /, ^, ==, >, >=, <, <=, broadcast, sin, cos, tan, cot, abs, exp, log, log10
export MeshStructure, BoundaryCondition, CellValue, FaceValue, CellVector,
arithmeticMean, geometricMean, harmonicMean, upwindMean, linearMean,
tvdMean, createBC, boundaryConditionTerm, cellBoundary, solvePDE,
tvdMean, createBC, boundaryConditionTerm, cellBoundary!, solvePDE,
divergenceTerm, gradientTerm, convectionUpwindTerm, createCellVector,
convectionTerm, convectionTvdTerm, diffusionTerm, createCellVariable,
createFaceVariable, copyCell, fluxLimiter, createMesh1D,
createMesh2D, createMesh3D, createMeshRadial2D, createMeshCylindrical2D,
createMeshCylindrical3D, createMeshCylindrical1D, solveLinearPDE,
visualizeCells, linearSourceTerm, constantSourceTerm, transientTerm,
linearSourceTerm, constantSourceTerm, transientTerm,
solveMUMPSLinearPDE, faceEval, cellEval, permfieldlogrndg, permfieldlogrnde,
plot, imshow, xlabel, ylabel, figure, legend, pcolor, contour, colorbar,
visualizeCellVectors, JFVM_test, solveExplicitPDE, reshapeCell,
cellVolume, reshapeInternalCell, internalCells, domainInt, convectionTvdRHS
JFVM_test, solveExplicitPDE, reshapeCell,
cellVolume, reshapeInternalCell, internalCells, domainInt, convectionTvdRHS # ,
# visualizeCells, visualizeCellVectors, plot, imshow, xlabel, ylabel, figure, legend, pcolor, contour, colorbar,

include("fvmToolTypes.jl")
include("meshstructure.jl")
Expand Down
Loading

0 comments on commit 2216826

Please sign in to comment.