So, I'd really like to add this system.add_variable(foo,SCALAR) 
functionality to libMesh. I've been poking around the library, but I'm 
not really sure how to get started, so I could definitely use some 
pointers...

It seems to me that the important details for this are in DofMap, for 
storing and retrieving the dof index of the scalar variable, as well as 
for setting the sparsity pattern/number of non-zeros...?

Some thoughts I've had are:

- Add a new enum SCALAR to FEFamily (or alternatively, a new enum SCALAR 
to Order)?
- Short circuit all the loops over elements for DOF counting in DofMap 
for SCALAR variables, and instead store the dof index of each SCALAR 
variable in a vector in DofMap?
- However, I can't see where in the code one should compute the dof 
index of a SCALAR variable in the first place?
- Ben, regarding setting the nonzero count and the number of rows that 
you mentioned; where is this controlled? In SparsityPattern?

As you can probably tell, I'm not very familiar with the guts of the 
library, so any help would be appreciated!

Regards,
Dave



Kirk, Benjamin (JSC-EG311) wrote:
> system.add_variable(foo,SCALAR); as the interface?
> 
> We jist then add the number of such variables into the nonzero count for each 
> row, and add a number of rows of full width.
> ??
> 
> 
> 
> 
> ----- Original Message -----
> From: Derek Gaston <[email protected]>
> To: [email protected] <[email protected]>
> Sent: Wed Mar 25 11:14:35 2009
> Subject: [Libmesh-users] Adding one more equation...
> 
> So... I got a question from one of my colleagues this morning about adding
> just one more equation (one more row and column to the matrix) to an
> existing NonlinearImplicitSystem.  Essentially, this is adding one global
> scalar equation.  In this case both the row and column are actually going to
> be dense...
> Any ideas on this?  It's almost like I need to add a node that's connected
> to every other node... or something.
> 
> Thanks,
> Derek
> ------------------------------------------------------------------------------
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
> ------------------------------------------------------------------------------
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to