Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


3 Pages<123>
Options
Go to last post Go to first unread
Offline Jean Giraud  
#21 Posted : 12 January 2023 19:59:26(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: pTM Go to Quoted Post
Red 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.
Offline pTM  
#22 Posted : 13 January 2023 05:51:13(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

Thanks for the help.
I am swamped with another project right now. But I will follow up this week end.
Pierre
Offline pTM  
#23 Posted : 13 January 2023 08:51:17(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

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

Results.png
VSD06 G14 12 Test.sm (82kb) downloaded 7 time(s).
Offline Razonar  
#24 Posted : 13 January 2023 13:53:50(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
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.
Offline Jean Giraud  
#25 Posted : 13 January 2023 15:09:38(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
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 (71kb) downloaded 4 time(s).
Offline pTM  
#26 Posted : 13 January 2023 16:38:23(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

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
Offline Razonar  
#27 Posted : 13 January 2023 16:58:17(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: pTM Go to Quoted Post
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).


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

Clipboard01.png

Best regards.
Alvaro.

Edited by user 13 January 2023 17:04:43(UTC)  | Reason: Not specified

Offline Jean Giraud  
#28 Posted : 13 January 2023 19:29:13(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: pTM Go to Quoted Post
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.

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.
Offline pTM  
#29 Posted : 13 January 2023 19:41:31(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

Yes I do. I actually published it as well.
I post it this week end.
Pierre
Offline Jean Giraud  
#30 Posted : 14 January 2023 16:32:29(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: pTM Go to Quoted Post
Yes 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 (116kb) downloaded 3 time(s).

Offline pTM  
#31 Posted : 15 January 2023 05:37:40(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

Salut Jean,
here is a reference paper.

This work is the reference in the field.
https://www.sciencedirec...cle/pii/0022024883903007

A slightly older paper but with similar maths
https://iopscience.iop.o...e/10.1149/1.2401687/meta

JCG62_83_225.pdf (405kb) downloaded 5 time(s).
JES121_74_1357.pdf (550kb) downloaded 4 time(s).
Offline pTM  
#32 Posted : 15 January 2023 05:43:20(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

Salut Jean,
Here is a set of data apparently legit (plot) with the source worksheet.

Untitled.png
VSD AB Plot.xlsx (43kb) downloaded 5 time(s).
VSD06 AB Single.sm (28kb) downloaded 5 time(s).
Offline pTM  
#33 Posted : 15 January 2023 05:46:22(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

Here is a mathcad worksheet with the results.
I attached an Smath worksheet with the parameters.

VSD Si-Ge 23-01-14.xmcd (200kb) downloaded 4 time(s).
MCD VSD Si-Ge 23-01-14.pdf (132kb) downloaded 11 time(s).
MCD VSD Si-Ge 23-01-14.xlsx (17kb) downloaded 9 time(s).
VSD06 G14 12 SiGe.sm (49kb) downloaded 7 time(s).
Offline pTM  
#34 Posted : 15 January 2023 05:55:27(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

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).


Reactor sketch.png
Offline Jean Giraud  
#35 Posted : 15 January 2023 17:35:59(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: pTM Go to Quoted Post
Salut 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 (59kb) downloaded 8 time(s).
Offline Jean Giraud  
#36 Posted : 17 January 2023 18:03:22(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Not knowing more about the project ...
Cheers ... Jean.

Pierre.sm (25kb) downloaded 1 time(s).
Offline pTM  
#37 Posted : 17 January 2023 18:53:02(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

Thank you Jean.
I need a little time to digest the information.
Pierre
Offline Jean Giraud  
#38 Posted : 17 January 2023 22:53:22(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: pTM Go to Quoted Post
Thank you Jean.
I need a little time to digest the information.
Pierre

I played my ass a bit in there ... Jean

Page2 Freak.sm (65kb) downloaded 2 time(s).

Offline overlord  
#39 Posted : 17 January 2023 23:48:13(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
In your attached PDF, a function has this;

2023-01-17_23-45.png

Same function in your smath files is this;

2023-01-17_23-46.png

Causing this;

2023-01-17_23-46_1.png

If this was not on purpose, here is your file fixed;

VSD06 G14 12 SiGe.sm (51kb) downloaded 9 time(s).
Offline pTM  
#40 Posted : 18 January 2023 04:40:54(UTC)
pTM


Rank: Member

Groups: Registered
Joined: 20/05/2022(UTC)
Posts: 22
United States
Location: Sunnyvale

Thanks you for spotting and fixing the typo.
Pierre
Users browsing this topic
3 Pages<123>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.