Are the region structure fields (region.x, .y, .z) the centroids of the elements in PDE toolbox (3D Geometry)?

1 view (last 30 days)
I'm working with a 3D geometry. I use the conductive media DC to calculate the electric potential, then I calculate the joule effect in the centroids and now I want to use it as a heat source (coefficient f) in the heat transfer module. The mesh is always the same.
I've seen that when the f coefficient in the function form is calculated, the region.x,.y,.z is grouped in vectors of 2500 components so I guess matlab repeats the function untill the region fields complets all the mesh size.
The problem appears when I try to assign a f value to the coordinates... it seems that the region.x,.y,.z are not the centroids of the elements...
Does anyone know exactly how the PDE coefficient fucntion form works (Why just 2500 elements in the region.x,.y,.z??)and the real meanning of the region.x,.y,.z field?
Thank you in advance.

Accepted Answer

Alan Weiss
Alan Weiss on 23 Jul 2015
The solvers need to evaluate the coefficients at various locations depending on the type of element, linear or quadratic. Integration over the finite elements is done using Gaussian quadrature, which involves sampling coefficients at Gauss points.
So, no, it is not sufficient to evaluate the coefficients at the centroids of the elements, you must give the coefficients at the requested locations, which are the Gauss points, so that the solver can perform numeric integration as accurately as possible.
Alan Weiss
MATLAB mathematical toolbox documentation
  2 Comments
Oriol Puigde
Oriol Puigde on 27 Jul 2015
Thank you for your answer Mr Weiss, So if the coefficient is evaluated at the Gauss points, the units of "f" in case of a heating source are volumetric? How can we know the input value outside the centroids?
thank you in adavance
Alan Weiss
Alan Weiss on 27 Jul 2015
Sorry, I do not understand the details of your application well enough to give you a sensible answer.
Alan Weiss
MATLAB mathematical toolbox documentation

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!