Skip to content

bcube-project/BcubeCGNS.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BcubeCGNS.jl

Implementation of Bcube IO interface for CGNS format. Checkout the relative Bcube documentation for more infos.

Note that all CGNS specifications are not implemented (for instance, NGON elements).

Basic usage

using Bcube
using BcubeCGNS

mesh = rectangle_mesh(10, 20)
U = TrialFESpace(FunctionSpace(:Lagrange, 1), mesh)
u = FEFunction(U)
projection_l2!(u, PhysicalFunction(x -> sum(x)), CellDomain(mesh))

write_file("output.cgns", mesh, Dict("u" => u, "grad_u" => (u)))

result = read_file("output.cgns"; varnames = "*")
mesh = result.mesh
data = result.data # Dict of variable name (String) to MeshData

About

Implementation of Bcube IO interface for CGNS format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages