AstroFV

FV Solver for RSTP problem

This project is maintained by njase

AstroFV

AstroFV is a Finite Volume Solver for Astrophysical applications written in Python

Current Features

High level view

Architecture of AstroFV

The AstoFV is divided into two modules:

Example usage

Code to solve RSTP with Explicit Euler technique

eparams = RSTPExplicitParams(1000,4/3,0.25) 
eparams.set_fig_path('./figs/')
eparams.fv_boundary_strategy = FVTransverse #Default 
eiv = RSTPIV(Vx=[0,0],Mx=[0,0],D=[1,10**-2],Rho=[1,10**-2])
ebv = RSTPBV()
test_explicit = RSTPTest(1,eparams,eiv,ebv,ode_strategy=ODEExplicit)
test_explicit.solve()

Code to solve RSTP with Implicit Euler technique

iparams = RSTPImplicitParams(1000,1.0,4/3,2,0.7)
iparams.set_fig_path('./figs/')
iparams.fv_boundary_strategy = FVTransverse #Default 
iiv = RSTPIV(Vx=[0,0],Mx=[0,0],D=[1,10**-2],Rho=[1,10**-2])
ibv = RSTPBV()
test_implicit = RSTPTest(2,iparams,iiv,ibv,ode_strategy=ODEImplicit)
test_implicit.solve()

See more at User manual and Developer manual