Re: [Libmesh-users] incorporate field parameters in libMesh

2016-11-17 Thread Xinzeng Feng
I will look into this example. Many thanks, Vikram! Xinzeng On Thu, Nov 17, 2016 at 5:37 PM, Vikram Garg wrote: > Hello Xinzeng, >You can find one use of MeshFunction in this > regression test for a libMesh based library (GRINS): https://github.com/gr > insfem/grins/blo

Re: [Libmesh-users] incorporate field parameters in libMesh

2016-11-17 Thread Vikram Garg
Hello Xinzeng, You can find one use of MeshFunction in this regression test for a libMesh based library (GRINS): https://github.com/grinsfem/grins/blob/master/test/regression/test_turbulent_channel.C Here, we are creating a MeshFunction (turbulent_bc_values) to map a 1-d tur

Re: [Libmesh-users] incorporate field parameters in libMesh

2016-11-17 Thread Xinzeng Feng
Hi Roy, Thanks for your response! I think my goal is really to first assign discrete data to a FE mesh, and then pass it to an interface for arbitrary x,y,z points. To achieve this, I can pass the data to a System object and initialize it with project_vector. But I "guess" that MeshFunction might

Re: [Libmesh-users] Looping over all "coupled" elements

2016-11-17 Thread Roy Stogner
This went off-list, but until I have GhostingFunctor documentation in a better state I should probably at least have decent questions and answers accessible to Google. On Thu, 17 Nov 2016, Cody Permann wrote: I know you dive into more detail in the next paragraph but I want to make sure I'm

Re: [Libmesh-users] Looping over all "coupled" elements

2016-11-17 Thread Roy Stogner
On Thu, 17 Nov 2016, Cody Permann wrote: > This question is probably for you. I'm curious if we've gained or could > potentially gain a method for looping over all "coupled" elements (if this > is the right terminology). Let me try to clarify what I mean since we've > used the wrong terminology f

Re: [Libmesh-users] How to make use of Libmesh in my project

2016-11-17 Thread John Peterson
On Wed, Nov 16, 2016 at 7:21 PM, Hisham Abdulla wrote: > Dear Libmesh team, > I'm a beginner in computational science and c++ programming. So please > excuse If I am not making any sense at somewhere. > > I am trying to develop a structural mechanics solver for non-linear > analysis problems. I

Re: [Libmesh-users] incorporate field parameters in libMesh

2016-11-17 Thread Roy Stogner
On Wed, 16 Nov 2016, Xinzeng Feng wrote: > I'm a new user of libMesh. I am trying to incorporate patient-specific MRI > data with a finite element model. For this purpose, I want to define a > field map with nodal values assigned based on the images. The field then > needs to be integrated to ass

Re: [Libmesh-users] Recycling preconditioned in system_of_equations7.C

2016-11-17 Thread Roy Stogner
On Wed, 16 Nov 2016, Salazar De Troya, Miguel wrote: LinearSolver does not have the capability to have null spaces attached to it. In my opinion, wouldn’t it be a good idea to have a Solver class from which all the solvers can inherit common things like attaching null spaces or setting up the p

Re: [Libmesh-users] Recycling preconditioned in system_of_equations7.C

2016-11-17 Thread Roy Stogner
On Wed, 16 Nov 2016, Salazar De Troya, Miguel wrote: The TimeSolver in DifferentiableSystem has both a DiffSolver and a LinearSolver. The DiffSolver is used in the regular primal/forward solve() and the LinearSolver in the adjoint_solve(). It would be convenient to reuse the forward preconditio