# How to get components of vector solution in Gridap

**URL:** https://discourse.julialang.org/t/how-to-get-components-of-vector-solution-in-gridap/50882
**Category:** Numerics
**Tags:** question, package
**Created:** [November 27, 2020, 11:43pm UTC](https://discourse.julialang.org/t/how-to-get-components-of-vector-solution-in-gridap/50882 "2020-11-27T23:43:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jmura](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jmura](https://discourse.julialang.org/u/jmura)
#### Post date: [November 27, 2020, 11:43pm UTC](https://discourse.julialang.org/t/how-to-get-components-of-vector-solution-in-gridap/50882/1 "2020-11-27T23:43:25Z")

</div>

Dear Julia users,

I’m using Gridap, and I’m learning from the tutorials. I have some questions:

a) How can we recover x- or y-components from a numerical solution uh, as the solution to linear elasticity (like in the tutorials). Note that

```julia
typeof(uh)
Gridap.FESpaces.SingleFieldFEFunction{true}

```

there are `get_free_values(uh)` and `get_dirichlet_values(uh)` throwing Array{Float64,1} values, but I’m puzzled about getting something like `ux=uh[1]`, `uy=uh[2]` (sorry for the incorrect syntax in the latter, it is just a way to express it).

b) Does anyone tried to solve anisotropic elasticity using Gridap? Some advice?

Thanks.
