Author |
Message |
Jae Lee (dream627)
New member Username: dream627
Post Number: 1 Registered: 11-2009
| Posted on Friday, November 06, 2009 - 05:13 pm: | |
Dir Sir. I have a problem for multiple transfer depends on stage. I'm using FlexPDE 5. I have several transfered data. (transfer_1.dat,transfer_2.dat...transfer_#.dat) According to the stage number #, I want to import transfer_#.dat I checked this link (http://www.pdesolutions.com/discus/messages/4/1570.html?1144189727) definitions alpha = table('transfer'+$stage+'.dat') However, only transfer_1.dat is imported for all stage. Please help me. Thank you very much. Best Regards. Jae Woo. LEE
|
Marek Nelson (mgnelson)
Moderator Username: mgnelson
Post Number: 154 Registered: 07-2007
| Posted on Friday, November 06, 2009 - 06:04 pm: | |
If you transferred out to the file "name.txt" (generating "name_1.txt", "name_2.txt" etc) and you want to read the staged files back into a staged problem, you should be able to construct a text string of the appropriate name with the following : "name_" + $stage + ".txt" I have attached a modification of our staged geometry example script where I do this. If you still have trouble, post a copy of your script that is malfunctioning.
|
Jae Lee (dream627)
New member Username: dream627
Post Number: 2 Registered: 11-2009
| Posted on Friday, November 06, 2009 - 06:38 pm: | |
Dear Sir. Thanks for rapid answer. I check your file and it works well. I modify my file but still same problem when I use transfer("transfer_"+$stage+".txt",p) I made 4 trasfer_#.txt files and I import using testimport.pde. In my test program p should be changed. If I use {Transfermesh('transfer_1.txt',p)} or {Transfermesh('transfer_4.txt',p)}, it works well. But I need staged. I attach the files. Thank you very much. Best Regards. Jae Woo. LEE
|
Marek Nelson (mgnelson)
Moderator Username: mgnelson
Post Number: 155 Registered: 07-2007
| Posted on Friday, November 06, 2009 - 07:06 pm: | |
I think that the problem is the transfer out, because all four of the tranfer files in your zip have the same data. So P does not change because the transfer files are the same. |
Jae Lee (dream627)
Junior Member Username: dream627
Post Number: 3 Registered: 11-2009
| Posted on Friday, November 06, 2009 - 07:18 pm: | |
If I use {Transfermesh('transfer_1.txt',p)} or {Transfermesh('transfer_4.txt',p)}, it works well. I mean.. the data p from transfer_1.txt is different from transfer_4.txt. If you remove transfer("transfer_"+$stage+".txt",p) and use transfer_4.txt you can see the value of p (upper-right plot) is different from transfer_1.txt |
Marek Nelson (mgnelson)
Moderator Username: mgnelson
Post Number: 156 Registered: 07-2007
| Posted on Friday, November 06, 2009 - 08:01 pm: | |
You are correct, I did not look close enough. The transfer files are different at the end of the data. Sorry about that. The reason that my example works and yours does not, is that my example had a staged geometry. The staged geometry forces FlexPDE to reprocess the entire script file. You can force this behavior by using SELECT STAGEGRID. The attached file should run the way you want it to.
|
Jae Lee (dream627)
Member Username: dream627
Post Number: 4 Registered: 11-2009
| Posted on Friday, November 06, 2009 - 08:21 pm: | |
Oh! It works! Thank you very much! It's nice to talk with you. Thank you again.
|