Author |
Message |
Eduards Rens (eduards)
Junior Member Username: eduards
Post Number: 3 Registered: 12-2005
| Posted on Thursday, March 15, 2007 - 03:55 am: | |
QUESTION 1. I am a bit confused about area integrals. For simplicity, lets say I have region 1 square rectangle, and second region 2 another rectagle in center of first, defined afterwards: ----------- |.........| |..----...| |.|.1..|..| |..----...| |.3.......| ----------- equation div(grad(u))=dt(u) I calculate integrals SUMMARY report integral (u,'region1') report integral (u,'region2') report integral (u,'region1')+ integral (u,'region2') Seems that first one is over all "background", even that covered by inclusion.. Am I right? How can I integrate just outside, not covered part (region 3), just inside and total ? Last seems are correct. QUESTION 2. I'd like to use STAGED paramerer for one parameter, but its not allowed in time dependent problems? How to solve this? I prefer run batch script, but i dont want to make 50 scripts with all difference in one parameter. How can I pass parameters to script from external call?
|
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 791 Registered: 06-2003
| Posted on Friday, March 16, 2007 - 01:52 pm: | |
1. If by "region2" you mean region 3, the integral over "region2" should exclude region1. You'll have to send me the script, so I can see if some other condition is confusing the issue. 2. STAGING uses some of the facilities of time stepping, so you cannot do both at the same time. There is no mechanism to pass parameters from a command line or external call, but you can use the #include facility. This requires making 50 script files containing the text: TITLE 'this is the run for thing=101" DEFINITIONS thing=101 #include "script_body.pde" "thing" is your varying parameter and "script_body.pde" is the rest of the problem definition.
|
Eduards Rens (eduards)
Member Username: eduards
Post Number: 4 Registered: 12-2005
| Posted on Monday, March 19, 2007 - 06:05 am: | |
I will run Matlab script with FOR loops, create include files with changing parameter value and execute flexpde in silent mode afterwards. Thanks.
|
|