Group Abstract Group Abstract

Message Boards Message Boards

Specify meshes and boundaries in NDSolveValue?

Posted 6 years ago
Attachments:
POSTED BY: Robert Curl
2 Replies

The second element in DirichletCondition should be a predicate, not a region. Something like this:

phil = NDSolveValue[{Laplacian[v[x, y], {x, y}] == 0, 
       {DirichletCondition[v[x, y] == 0., Element[{x, y}, boundary1]], 
         DirichletCondition[v[x, y] == 3000.,  Element[{x, y}, boundary2]], 
         DirichletCondition[v[x, y] == 0.,  Element[{x, y}, boundary3]]}}, 
       v,   Element[{x, y}, \[CapitalOmega]elMesh]]
POSTED BY: Gianluca Gorni

It will need some refinement, but I WORKS! THANK YOU!

POSTED BY: Robert Curl
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard