PDE Toolbox solution array along a line, to then find the mean value
Mostra commenti meno recenti
I'm have solved Poisson's equation for simple rectangular geometry using the PDE Toolbox. I exported the solution and mesh and now I want to find u along a line so that I can then find its average.
It is a rectangle with bottom boundary at y = -0.8 and x = -0.5 to 0.4. This is what I was trying to type in the command line:
F = pdeInterpolant(p,t,u);
x = -0.5:0.4;
y = -0.8;
uOut = evaluate(F,x,y)
But this only returns one value. I am looking for an array of values so that I can use mean(uOut) to find the average.
I also want to find the the mean normal component of u into the page at the same position.
Any help greatly appreciated.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Geometry and Mesh in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!