Thermodynamics / Migration from Mathcad 15 - Non linear equation solving - Messages
#21 Posted: 1/12/2023 1:59:26 PM
WroteRed line looks good.
It is in line with the expected response of the system.
Red line plot may be integrated providing a model fit is given.
Attach your data set, I will attempt a model.
Cheers ... Jean.
#22 Posted: 1/12/2023 11:51:13 PM
Thanks for the help.
I am swamped with another project right now. But I will follow up this week end.
Pierre
I am swamped with another project right now. But I will follow up this week end.
Pierre
#23 Posted: 1/13/2023 2:51:17 AM
Hello,
I need to double check the data from the plot as I picked them up one by one.
And I want to give you sound data.
I will take care of it this week end.
I kept debugging the program. I found a few silly errors.
Hovering the mouse on the program shows the matrix.
The number of loop is reduced to 9 for troubleshooting.
But it's neither displayed outside of the program nor saved in a file.
Is there a way to fix that ?
Thanks for the help,
Pierre

VSD06 G14 12 Test.sm (81 KiB) downloaded 39 time(s).
I need to double check the data from the plot as I picked them up one by one.
And I want to give you sound data.
I will take care of it this week end.
I kept debugging the program. I found a few silly errors.
Hovering the mouse on the program shows the matrix.
The number of loop is reduced to 9 for troubleshooting.
But it's neither displayed outside of the program nor saved in a file.
Is there a way to fix that ?
Thanks for the help,
Pierre
VSD06 G14 12 Test.sm (81 KiB) downloaded 39 time(s).
#24 Posted: 1/13/2023 7:53:50 AM
Hi Peter. You still haven't solved the problem that f doesn't find any root for the initial conditions you propose, so the 3rd and 4th rows are zero. In addition, the way in which you build the range for the values of pz(1) and pz(2) does not seem adequate, since its limits depend on N, and it should not be like that (only the intermediate points should depend on N, not both ends of the interval). To save the data to a file, "execute" the command outside of the loop, ie, set exportData(...) = ... at the worksheet level, and not in the loop. Finally, the use of try ... on error is not particularly useful for numerical computation problems, and is actually a convenient and quick way of avoiding actual error handling, as well as being a lousy recommendation for this particular case.
Other problems would also be that you use some subscripts that are units (in blue) or that to graph you must use a double index on the MTX matrix, that is, something like augment(transpose(row(MTX,4)),transpose(row( MTX,5))), but the fundamental thing is that you establish the domain on which you want to calculate and then what are your seed or guess values. Since I do not know the thermodynamics that you are applying in this new version, I am not in a position to recommend any.
Best regards.
Alvaro.
Other problems would also be that you use some subscripts that are units (in blue) or that to graph you must use a double index on the MTX matrix, that is, something like augment(transpose(row(MTX,4)),transpose(row( MTX,5))), but the fundamental thing is that you establish the domain on which you want to calculate and then what are your seed or guess values. Since I do not know the thermodynamics that you are applying in this new version, I am not in a position to recommend any.
Best regards.
Alvaro.
#25 Posted: 1/13/2023 9:09:38 AM
Salut Pierre.
As you can imagine, I'm trying to see something from
these indigestible too big too small values.
Maybe it goes nowhere or hits the wall.
Cheers ... Jean.
VSD06 G14 12 Binary (2).sm (70 KiB) downloaded 43 time(s).
As you can imagine, I'm trying to see something from
these indigestible too big too small values.
Maybe it goes nowhere or hits the wall.
Cheers ... Jean.
VSD06 G14 12 Binary (2).sm (70 KiB) downloaded 43 time(s).
#26 Posted: 1/13/2023 10:38:23 AM
Thank you for your contributions Alvaro and Jean.
I understand better the problem.
I had issues with Mathcad and I wanted to tried another SW as a sanity check.
The approach is occasionally successful on Mathcad. But it's certainly the same challenge.
I need to clean up my programs a bit and see if I can get a good dataset again.
Also, I got the data export working.
Give me a bit a time to digest the new feedbacks.
Alvaro, I am not sure I got your comment right, but the solutions for the corner values are known.
It's 0 and 1 (pure elements).
FYI, there is an alternative algorithm to get to the solution.
It seems more popular, maybe for a good reason.
Let me look into it and attempt to code it.
You will know how it goes.
Thanks again,
Pierre
I understand better the problem.
I had issues with Mathcad and I wanted to tried another SW as a sanity check.
The approach is occasionally successful on Mathcad. But it's certainly the same challenge.
I need to clean up my programs a bit and see if I can get a good dataset again.
Also, I got the data export working.
Give me a bit a time to digest the new feedbacks.
Alvaro, I am not sure I got your comment right, but the solutions for the corner values are known.
It's 0 and 1 (pure elements).
FYI, there is an alternative algorithm to get to the solution.
It seems more popular, maybe for a good reason.
Let me look into it and attempt to code it.
You will know how it goes.
Thanks again,
Pierre
#27 Posted: 1/13/2023 10:58:17 AM
WroteAlvaro, I am not sure I got your comment right, but the solutions for the corner values are known.
It's 0 and 1 (pure elements).
Hi Pierre. I talk about pz(1), pz(2) and N as in the notation you use in your worksheet. Usually N determines the number of intervals into which a range is divided, but here it is not the case since it also affects the values of the edges of the interval. I mean these corners
Best regards.
Alvaro.
#28 Posted: 1/13/2023 1:29:13 PM
WroteI understand better the problem.
I had issues with Mathcad and I wanted to tried another SW as a sanity check.
The approach is occasionally successful on Mathcad. But it's certainly the same challenge.
Salut Pierre.
Outside of Mathcad and else, do you have the maths/formula of that system
from a chemical book c/w graph. No sweat to digitize graph.
See you soon... Jean.
#29 Posted: 1/13/2023 1:41:31 PM
Yes I do. I actually published it as well.
I post it this week end.
Pierre
I post it this week end.
Pierre
#30 Posted: 1/14/2023 10:32:29 AM
WroteYes I do. I actually published it as well.
I post it this week end.
Pierre
Refreshed version. Original MCD Thiele.
Final is the export for plugging in other document.
Next: will test if a seeded scanner can improve timing.
Cheers Pierre, take care ... Jean.
VSD06 G14 12 Binary (2) Copy.sm (115 KiB) downloaded 43 time(s).
#31 Posted: 1/14/2023 11:37:40 PM
Salut Jean,
here is a reference paper.
This work is the reference in the field.
https://www.sciencedirect.com/science/article/pii/0022024883903007
A slightly older paper but with similar maths
https://iopscience.iop.org/article/10.1149/1.2401687/meta
JCG62_83_225.pdf (404 KiB) downloaded 51 time(s).
JES121_74_1357.pdf (549 KiB) downloaded 51 time(s).
here is a reference paper.
This work is the reference in the field.
https://www.sciencedirect.com/science/article/pii/0022024883903007
A slightly older paper but with similar maths
https://iopscience.iop.org/article/10.1149/1.2401687/meta
JCG62_83_225.pdf (404 KiB) downloaded 51 time(s).
JES121_74_1357.pdf (549 KiB) downloaded 51 time(s).
#32 Posted: 1/14/2023 11:43:20 PM
Salut Jean,
Here is a set of data apparently legit (plot) with the source worksheet.
VSD AB Plot.xlsx (42 KiB) downloaded 43 time(s).
VSD06 AB Single.sm (27 KiB) downloaded 41 time(s).
Here is a set of data apparently legit (plot) with the source worksheet.
VSD AB Plot.xlsx (42 KiB) downloaded 43 time(s).
VSD06 AB Single.sm (27 KiB) downloaded 41 time(s).
#33 Posted: 1/14/2023 11:46:22 PM
Here is a mathcad worksheet with the results.
I attached an Smath worksheet with the parameters.
VSD Si-Ge 23-01-14.xmcd (199 KiB) downloaded 44 time(s).
MCD VSD Si-Ge 23-01-14.pdf (131 KiB) downloaded 53 time(s).
MCD VSD Si-Ge 23-01-14.xlsx (16 KiB) downloaded 42 time(s).
VSD06 G14 12 SiGe.sm (48 KiB) downloaded 44 time(s).
I attached an Smath worksheet with the parameters.
VSD Si-Ge 23-01-14.xmcd (199 KiB) downloaded 44 time(s).
MCD VSD Si-Ge 23-01-14.pdf (131 KiB) downloaded 53 time(s).
MCD VSD Si-Ge 23-01-14.xlsx (16 KiB) downloaded 42 time(s).
VSD06 G14 12 SiGe.sm (48 KiB) downloaded 44 time(s).
#34 Posted: 1/14/2023 11:55:27 PM
Finally a sketch of the chemical vapor deposition (CVD) reactor and notation.
It's a continuous flow reactor.
But with a 0D approach, the "instantaneous" partial pressures are only considered.
p° (noted pz) are virtual partial pressure based on the flows.
peq is the partial pressure at equilibrium
(pz-peq) give the amount of solid deposited. It's the supersaturation.
It's the same physics for salt and sugar.
If amounts below solubility are introduced, no solid is grown.
The worksheet attempts to calculate the "solubility" of components A and B in order to estimate the composition of the solid.
In this system, the elements are coupled (interaction parameter omega).

It's a continuous flow reactor.
But with a 0D approach, the "instantaneous" partial pressures are only considered.
p° (noted pz) are virtual partial pressure based on the flows.
peq is the partial pressure at equilibrium
(pz-peq) give the amount of solid deposited. It's the supersaturation.
It's the same physics for salt and sugar.
If amounts below solubility are introduced, no solid is grown.
The worksheet attempts to calculate the "solubility" of components A and B in order to estimate the composition of the solid.
In this system, the elements are coupled (interaction parameter omega).
#35 Posted: 1/15/2023 11:35:59 AM
WroteSalut Jean,
Here is a set of data apparently legit (plot) with the source worksheet.
Sorry Pierre, NONE of your Smath document work on my system.
The Mathcad table does not plot much.
Cheers ... Jean.
Page6 Pierre.sm (58 KiB) downloaded 39 time(s).
#36 Posted: 1/17/2023 12:03:22 PM
#37 Posted: 1/17/2023 12:53:02 PM
Thank you Jean.
I need a little time to digest the information.
Pierre
I need a little time to digest the information.
Pierre
#38 Posted: 1/17/2023 4:53:22 PM
WroteThank you Jean.
I need a little time to digest the information.
Pierre
I played my ass a bit in there ... Jean
Page2 Freak.sm (64 KiB) downloaded 36 time(s).
#39 Posted: 1/17/2023 5:48:13 PM
In your attached PDF, a function has this;

Same function in your smath files is this;

Causing this;

If this was not on purpose, here is your file fixed;
VSD06 G14 12 SiGe.sm (50 KiB) downloaded 43 time(s).
Same function in your smath files is this;
Causing this;
If this was not on purpose, here is your file fixed;
VSD06 G14 12 SiGe.sm (50 KiB) downloaded 43 time(s).
#40 Posted: 1/17/2023 10:40:54 PM
Thanks you for spotting and fixing the typo.
Pierre
Pierre
-
New Posts
-
No New Posts