Scalar and tensor error message

General discussions about how to formulate a script for FlexPDE.

Scalar and tensor error message

Postby jehadyam on Tue Jun 16, 2015 6:21 am

Hi
I am trying to model the energy equation in the hydrogen storage inside metal hydride
I have the energy equation of the form
(roh*Cp)*dt(T)+roh*Cp*V*grad(T)=div(Ke*grad(T))+m*(delt_H-T*(Cpg-Cps))
V is vector in R only
I wrote it this way
Tempg : (epss*rohg*cpg+(1-epss)*rohs*cps)*dt(Tempg)+grad(rohg*cpg*V*Tempg)=div(ke*grad(Tempg))+m*(DeltH-Tempg*(cpg-cps))
I get error message on this term +grad(rohg*cpg*V*Tempg) of the LHS
"The Add Operation is undefined for the pair (Tensor, Scalar)"

Any help!
jehadyam
 
Posts: 3
Joined: Thu Jan 31, 2013 11:27 am

Return to FlexPDE Discussion

Who is online

Users browsing this forum: No registered users and 2 guests