A few simple questions that I had regarding vectors:

1) How can I initialize them to a particular value? Can i just resize them to 
n_dof and then add a scalar?
2) Would the correct way to re-assemble my vector be - 
GlobalVector.add(local_vector, dof_map_indices) (the same way while assembling 
the system matrix)?
3) How do I write out the vector using the Tecplot_IO? If I pass the 
equation_system reference to the IO object, would it also write out the vector?

Thanks

Regards
Amal  
________________________________________
From: Kirk, Benjamin (JSC-EG311) [[email protected]]
Sent: Tuesday, July 15, 2014 3:09 PM
To: Sahai, Amal
Subject: Re: [Libmesh-users] Primitive variables

That's precisely what I do in my code.  Depends on what you mean by efficient ; 
clearly that requires more storage but usually provides a speed benefit because 
you do not need to repeatedly recalculate the primitives.

-Ben



On Jul 15, 2014, at 1:53 PM, Sahai, Amal <[email protected]> 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?
>
> Regards
> Amal
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
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