# Topology optimization in gridap for structural problem

**URL:** https://discourse.julialang.org/t/topology-optimization-in-gridap-for-structural-problem/98945
**Category:** General Usage
**Tags:** question, package, diffeq
**Created:** [May 16, 2023, 5:27pm UTC](https://discourse.julialang.org/t/topology-optimization-in-gridap-for-structural-problem/98945 "2023-05-16T17:27:07Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [May 16, 2023, 6:31pm UTC](https://discourse.julialang.org/t/topology-optimization-in-gridap-for-structural-problem/98945/3 "2023-05-16T18:31:09Z")

</div>

> [@mary](#):
>
> HI, I am using gridap package to FE and then topology optimization. i just followed the tutorial 18 of gridap but I get error as below.

Are you running _exactly_ the code in the [Gridap TopOpt Tutorial 18](https://gridap.github.io/Tutorials/dev/pages/t018_TopOptEMFocus/#Tutorial-18:-Topology-optimization-1) or are you just basing your code off it, doing something a bit different?

(If you are following it exactly then your question about the trial/test space makes no sense because the tutorial is a scalar PDE. If your code is different from the tutorial it will not be possible to help you unless you post a minimal runnable code snippet that illustrates your problem. [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757))

---

_[View the full topic](https://discourse.julialang.org/t/topology-optimization-in-gridap-for-structural-problem/98945)._
