Re: [Libmesh-users] solve Ax1= b1; Ax2 = b2 in get solution x = f(x1, x2)

2014-07-19 Thread Roy Stogner
On Sat, 19 Jul 2014, walter kou wrote: > Instead of solving Ax=b, where, A is system.matrix; b is system.rhs, x is > the solutions. > > I need to 1) assemble 2 system.rhs: b1 and b2; > 2) solve A x1 =b1, A x2 =b2; > 3) then obtain the final solution x = f(x1, x2); > > I w

Re: [Libmesh-users] Element-wise variables become node-wise variables in gmv file

2014-07-19 Thread Roy Stogner
On Sat, 19 Jul 2014, walter kou wrote: > In my equation systems, I have constant-monomial variables, i.e. > element-wise variables. > > I notice, in the output gmv files, the element-wise variables has same > number of data as node-wise variables. > > How does the node-wise data computed based on

Re: [Libmesh-users] Elasticity nullspace

2014-07-19 Thread Ataollah Mesgarnejad
Thank Dmitry, I've seen the implementation in the NonlinearImplicitSystem. I've also made my own copy of your implementation in PETScNonlinearSolver::build_mat_null_space inside my own code to do the same thing for LinearImplicitSystems. I suspect there is something wrong with the BlockSize since

Re: [Libmesh-users] Elasticity nullspace

2014-07-19 Thread Dmitry Karpeyev
Ata, Note that you can attach a NearNullSpace calculation routine or an equivalent callable object to your NonlinearSolver (currently supported only for PetscNonlinearSolver, I believe). The solver will detect the NearNullSpace calculator, evaluate it and attach the resulting NearNullSpace to the

[Libmesh-users] solve Ax1= b1; Ax2 = b2 in get solution x = f(x1, x2)

2014-07-19 Thread walter kou
Hi all, Instead of solving Ax=b, where, A is system.matrix; b is system.rhs, x is the solutions. I need to 1) assemble 2 system.rhs: b1 and b2; 2) solve A x1 =b1, A x2 =b2; 3) then obtain the final solution x = f(x1, x2); I wonder how to do the above job. Could I have

[Libmesh-users] Element-wise variables become node-wise variables in gmv file

2014-07-19 Thread walter kou
Dear all, In my equation systems, I have constant-monomial variables, i.e. element-wise variables. I notice, in the output gmv files, the element-wise variables has same number of data as node-wise variables. How does the node-wise data computed based on element-wise results? In may case, eleme

[Libmesh-users] Elasticity nullspace

2014-07-19 Thread Ataollah Mesgarnejad
Dear all, I was wondering if there is a way to create the coordinates vector for MatNullSpaceCreateRigidBody? I tried traversing all the nodes in the mesh by doing something like: coords->init (no_nodes*dim, no_local_nodes*dim, false, PARALLEL); coords->zero(); MeshBase::const_node_iterator n