Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Introduce a new equation

Please login with a confirmed email address before reporting spam

Hi,

I'm working with the comsol and I want to introcude a new equation for calculate the potencial in a Battery.
The equation is like this:

E = E1 + A * Log(c_A*(6800-c_A)/c_B)

Where E1 and A are constant and c_A, c_B are output variables concentrations of the other equation (Convention and Diffusion),
So I need this for calculate E, but i don't know how can i do it. I'm triying to work woth the PDE equation but is not working.

I'll really apreciate your help

regards

Pablo

6 Replies Last Post 2010年5月28日 GMT-4 11:43

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年5月28日 GMT-4 08:01
How about entering them in Scalar expressions? Options -> Expressions -> Scalar expressions

once you entered, update your model (under Solve menu)
How about entering them in Scalar expressions? Options -> Expressions -> Scalar expressions once you entered, update your model (under Solve menu)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年5月28日 GMT-4 10:23
The problem is that i need to introduce this equation and obtain the visual representation of this equation in all of the material.

I don't know if that is possible only with the scalar equation because I don't find this variable in the plot parameters.

what can i do?

The problem is that i need to introduce this equation and obtain the visual representation of this equation in all of the material. I don't know if that is possible only with the scalar equation because I don't find this variable in the plot parameters. what can i do?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年5月28日 GMT-4 10:43
Then define it in subdomain expressions, and just write the variable in the surface plot manually; if I got you correctly.
Then define it in subdomain expressions, and just write the variable in the surface plot manually; if I got you correctly.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年5月28日 GMT-4 11:18
Write the variable in the surface plot manually?
How can i do that?
Write the variable in the surface plot manually? How can i do that?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年5月28日 GMT-4 11:27
well, let's say I have a variable called reaction_rate, which is equal to c*k, where c is the concentration and k a constant.
Write reaction_rate = k*c in the subdomain expression. Then update your model through solve menu. Next, type reaction_rate in the surface plot where the expression box is.
well, let's say I have a variable called reaction_rate, which is equal to c*k, where c is the concentration and k a constant. Write reaction_rate = k*c in the subdomain expression. Then update your model through solve menu. Next, type reaction_rate in the surface plot where the expression box is.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年5月28日 GMT-4 11:43
Thanks a lot for your help!!

The program is running in this seccion now.

regards

Pablo
Thanks a lot for your help!! The program is running in this seccion now. regards Pablo

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.