Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
4 years ago
14 mai 2020, 11:44 UTC−4
Can you attach your mph file, or at least tell us what expression you tried entering?
Jeff
-------------------
Jeff Hiller
Can you attach your mph file, or at least tell us what expression you tried entering?
Jeff
Please login with a confirmed email address before reporting spam
Posted:
4 years ago
19 mai 2020, 19:34 UTC−4
Updated:
4 years ago
19 mai 2020, 20:22 UTC−4
I am trying to provide an equation which looks like the following
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAAArCAQAAAAp+5UhAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAAHdElNRQfoCAsMFCYkC1RDAAADYElEQVRo3tWZ23WjMBCGv9mzDSglkBLUglICKYEtAZdASiAlxCVACXEJuARTwuwDQoiLYyfmHIh4QRKg+TW3X4Mov7/93VqAr5oUWNCXW8/92VrQr5oeOGFuP7drEICl/v0gHKdfDkIc3KOJXTq2JGTACctJWz9myDDASY+zF3R3F5YKo+C4UISxT6yCocTO3tha5JlAhgsuCOfGY2Qoyf5BlHz6O4dOx4JeCnLKHs7mQs9ADCZUUE3HvF5yD7LB7BAEtjchhaoTHTeMTTTkx/cWYg2EzOCoQTLaUeQynHnxd/i5rfd+wZwSRSFHMVhShYY0mFLZmZBCQdnd7S9PHMjliONIjcPqAXglF2hxtPrPa8Rhwn1MxSUjibotRz2vK2G0Qq21F8YB8N6vJYZET92chnwtFvQU9VI9iMHomak5YVEyf59y6eLAqubi0DjWKHxSzGP/DfdPvYR2ITqNkwnpOC6sAiJDh5yLIf8eAIWES99Z9gnLOTKhFh8jVmyWc28WYnH69t0P6Jmn8cgUxFhkBxxZt4UVxGG+D2EZ11hRwSMULJeht5IxhRUo5kTup9dYE4G/iyHF8ao3TEnsleNjq8uHGQfUYijIeF9LuWMQljOZABgSXrW9+X56dWYZhOWMIeWNjJx/K6EYKbvpc6BC2dOvOWt8wJwaGk+qSy597o3mf/LR6rpHFIFmzVjj4x7h88VKHhdlbMkoeQ55s8LqE4A4KhUAUV7GXiL5tZKKHuZjkxUa0Oc1rCn2iXGOCKFQa5myxqHV99SFrqzwRhkTiwfaskcoaOcTA0UYWOMDHvER9Qz66BdHnkTBB0ozsBgqPpWBFOAeW5CCKl6BhBJF7wkXFFRDmLkKYnEqjSBYCgXzeHz68RaEUzamP13cASJ6aMIaNwBRRWad0Yxn7zgUSUKFkc6DZI1o8oPmovw+r89us7Pf1INDhwxFM80v+zueRm1azvSnwAQrBceInW29y1964qycueQRO9aEGKqOgmotJvKCpT8WW+/3VT0slDOXPWJ/xbOhpWHHo9OmJCRzTewUhFgGE7LR2cSN2Ne+QSyWMztA3ckz+wUgtKbt+LHkwEms588JLYTevkHQlTOdFNTUOFL/k+uIkRQ3+eW1dRT6Ij6ZnqmNCvvJnIT+B/BNdSMjK99EAAAALXRFWHRpY2M6Y29weXJpZ2h0AENvcHlyaWdodCBBcnRpZmV4IFNvZnR3YXJlIDIwMTEIusW0AAAAMXRFWHRpY2M6ZGVzY3JpcHRpb24AQXJ0aWZleCBTb2Z0d2FyZSBzUkdCIElDQyBQcm9maWxlEwwBhgAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAA1OXgyNisyNzUrNjI4W/kX0QAAAB50RVh0cHM6TGV2ZWwAUFMtQWRvYmUtMi4wIEVQU0YtMi4wQfkzEwAAAABJRU5ErkJggg==)
Can I provide this equation in the global definitions? Or do I need to enter it by defining a PDE using the math module?
Thank you.
I am trying to provide an equation which looks like the following
R_2 = K \frac {dc_2}{dt}
Can I provide this equation in the global definitions? Or do I need to enter it by defining a PDE using the math module?
Thank you.
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
4 years ago
20 mai 2020, 11:18 UTC−4
Updated:
4 years ago
20 mai 2020, 18:19 UTC−4
Yes, you should be able to enter an expression like that for your reaction term. The issue is likely one of syntax or scope of the variables involved. In particular, you mention that you are trying to use global definitions, but I doubt that c2 has a global scope, i.e. c2 is, I presume, defined at the Component level in your file.
Best,
Jeff
-------------------
Jeff Hiller
Yes, you should be able to enter an expression like that for your reaction term. The issue is likely one of syntax or scope of the variables involved. In particular, you mention that you are trying to use global definitions, but I doubt that c2 has a global scope, i.e. c2 is, I presume, defined at the Component level in your file.
Best,
Jeff