http://libmesh.sourceforge.net/doxygen/classlibMesh_1_1TecplotIO.php
You can pass the additional data vector directly using the write_nodal_data () member function. The write_equation_systems () method does this internally, just using the baseline solution vector. -Ben On Jul 16, 2014, at 4:10 PM, Sahai, Amal <sah...@illinois.edu> wrote: > How do I output any additional vectors added using add_vector to a system > through the tecplot_io? > > Regards > Amal > _______________________________________ > From: Sahai, Amat > Sent: Wednesday, July 16, 2014 11:52 AM > To: libmesh-users@lists.sourceforge.net > Subject: RE: [Libmesh-users] Primitive variables > > 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) [benjamin.k...@nasa.gov] > 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 <sah...@illinois.edu> 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 >> Libmesh-users@lists.sourceforge.net >> 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 > Libmesh-users@lists.sourceforge.net > 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 Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users