On Tue, 15 Jul 2014, Sahai, Amal wrote:

> I have a compressible flow solver that solves for the conservative
> variables. I was wondering what would be the best way to store
> primitive variables? Right now I have attached a vector to the
> system that I solve and I update it after every iteration (I
> assemble it the way the system matrix is assembled). Is this the
> most efficient way to get this done?

If you've got the same number of "auxilliary" variables as you do
conserved variables, then just adding another vector is the most
efficient way to go.  If you expect to want to cache more intermediate
calculations (e.g. Mach number, stabilization terms, nodal
source/convection terms) eventually and there's no one-to-one
correspondance with conserved solution variables, then you might want
to just create an extra ExplicitSystem and use its solution vector.
---
Roy

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to