Author |
Message |
Benjamin Kaplan (kaplan)
Member Username: kaplan
Post Number: 10 Registered: 08-2003
| Posted on Thursday, October 20, 2005 - 09:30 am: | |
I have 2 questions concerning the CONTOUR plot instruction: 1/-Automatically FLEXPDE choose the values for which contours are plotted (for example each 10 degrees in a particular thermal diffusion problem). Is it possible, for the user, to choose only one critical (or several) value(s) in order to plot the contour (With an instruction which could seems like that : CONTOUR(Temp=10,15,32)! ) 2/-When a user want to export CONTOUR plots data, data are not arranged in a directly usefull format (It is not easy to plot contours IN THE PROBLEM'S COORDINATES with an Excel spreedsheet for example)? Is there another way to export more explicitly the CONTOUR plots (for a given Temp value with the R and Z coordinates of the temperature front)? Sincerely Yours Ben
|
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 477 Registered: 06-2003
| Posted on Thursday, October 20, 2005 - 04:11 pm: | |
1. By default, FlexPDE looks at the range of data to be plotted and selects a set of "nice" numbers for contour levels. There are two ways to override this: a) If you use the FIXED RANGE=(a,b) specifier and the CONTOURS=number specification, you can dictate both the plottable range and the number of divisions, effectively controlling the contour levels. b) The specification LEVELS=a,b,c,d dictates the exact data values for which to draw contours. [I see that this option is not documented, so I will have to fix the documentation.] 2. I'm not sure I understand the question. I infer that what you want is to export the paths of the contour lines? There is no mechanism to do this. You will have to export a TABLE of values and let Excel plot the curves (I guess they can do that). |
Benjamin Kaplan (kaplan)
Member Username: kaplan
Post Number: 11 Registered: 08-2003
| Posted on Saturday, October 22, 2005 - 06:27 am: | |
Dear RG NELSON, thank you very much indeed. Best Regards. BKaplan |
Jared Barber (jared_barber)
Member Username: jared_barber
Post Number: 29 Registered: 01-2007
| Posted on Monday, April 07, 2008 - 07:37 pm: | |
Hey, I'm trying to print out contours using the "trace" command. The problem is, for some reason the "trace" command gives back incomplete files. This can be easily seen if you open the samples/steady_state/heatflow/radbdry.pde. Just replace the "contour(Temp)" line with "contour(Temp) trace export file = "radbdry.dat". For instance, on my machine and flexpde (machine uses Ubuntu 7.04, Flexpde is version 5.0.19) the last line abruptly ends with: 45 ( 0.1383336302, 0.5302771917) 46 ( 0.1374775390, 0.5372093338) 47 What's going on? I'd like to save the traces as they produce prettier contour pictures in other programs. Let me know what can be done. Jared |
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 1095 Registered: 06-2003
| Posted on Monday, April 07, 2008 - 11:21 pm: | |
The trace file write buffer is not being purged when the problem finishes. If you try to use the trace output file while the FlexPDE problem is still open, the file will be incomplete. Close the FlexPDE problem, and the file write should be completed.
|
|