怎么运行.jl文件

新手小白求助
刚接触julia,需要运行一个.jl文件,不知道应该怎么运行。求助
代码如下

using PostSPH
# Load all data in
cd(raw"D:\DualSPHysics_v5.0\examples\main\03_MovingSquare\CaseMovingSquare_out\data")
rhop_array = readBi4Array(PostSPH.Rhop)
pos_array = readBi4Array(PostSPH.Points)
vel_array = readBi4Array(PostSPH.Vel)
idp_array = readBi4Array(PostSPH.Idp)


Npok = PostSPH.readBi4_CurrentTotalParticles()
TypeOfParticle, NValues = PostSPH.readBi4_NumberOfParticles()
NTime = PostSPH.readBi4_Time()

# Save to vtk
for i = 1:251
    SimData101 = PostSPH.SaveVTK.SimData(
        Points = pos_array[i],
        Idp = idp_array[i],
        Vel = vel_array[i],
        Rhop = rhop_array[i],
    )

    #Use 3d glyph filter in Paraview with 2d glyphs!
    @time PostSPH.SaveVTK.write_vtp("SimData_" * lpad(string(i), 4, "0"), SimData101)
end

包装好了,命令行直接运行就行

julia code.jl

输出会写入到当前文件夹下。

也可以先进入 julia 的 REPL 然后加载代码运行。

include(raw"code.jl")

备案号:京ICP备17009874号-2