Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about the finite element method software FEniCS and its subpackages (Dolfin, UFL, FFC).
1
vote
FEniCS : How to interpolate data at vertices of (3D) cells?
I assume that qvalues2 has some computed values at the vertices. You cannot directly assign these to your dof vector as the dofs does not follow vertex numbering.
You could however try:
vertex_to_d …
3
votes
Simple FEniCS problem shape mismatch
If your domain is one dimensional you should use:
mesh = UnitIntervalMesh(10)
For partial derivative in x direction use:
u.dx(0)
5
votes
FEniCS: how to specify boundary conditions on a circle inside 2D mesh
As the error message suggest the DirichletBC does not hit any mesh entities with corresponding dofs. You need to examine your subdomains. One way to debug these are to apply the DirichletBC to a Funct …
3
votes
FEniCS: importing mesh along with material and boundary data
The questions depends on what program you have used to generate the external meshes. Dolfin provides the script dolfin-convert, which convert external meshes to dolfin meshes. Depending on what format …
5
votes
defining subdomains in FEniCS (Python) using obtained (solved) variable
You need to evaluate the Function at the given point. Assuming phi1 is a scalar Function, try:
class Bulk(SubDomain):
def inside(self, x, on_boundary):
return phi1(x) >= 0.1
and similar …