Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: volume integration
Replies: 11   Last Post: May 7, 2014 7:25 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Marios Karaoulis

Posts: 87
Registered: 5/10/10
Re: volume integration
Posted: Sep 9, 2011 3:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thanks so much Bruno. You blew my mind.

One last question,

For every node, actually I need to evaluate the integral 4 times.
Using the same notation,
I have
JA JB JM JN

The integration is
triple integral ( (JAJM -JAJN -JBM +JBN))

So, if I change the last part to something like this

JAJM = dot(JA,JM,3);
JAJM = mean(JAJM,2);

JAJN = dot(JA,JN,3);
JAJN = mean(JAJN,2);


JBJM = dot(JB,JM,3);
JBJM = mean(JBJM,2);


JBJN = dot(JB,JN,3);
JBJN = mean(JBJN,2);


J_ALL=(JAJM-JAJN-JBJM+JBJN)

jac2 = J_ALL.*abs(D)/6;


it should be alright.

But is possible to write this in the following way

J_ALL=dot(JA-JB,JM-JN,3)
J_ALL=mean(J_ALL,2)

thanks in advance.




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.