FlexPDE & Matlab Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » FlexPDE & Matlab « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Fuul (fuullcts)
Member
Username: fuullcts

Post Number: 4
Registered: 05-2009
Posted on Monday, May 11, 2009 - 11:21 am:   

Hello,
It seems that my problem was already solved but I don't find all the answers...
I would to write a script in Matlab that calls a script in FlexPDE (in command-line I presume) but is there a method that allows to import from Matlab to FlexPDE some parameters to run the script ?
Thanks for answering and/or turning me toward hte good thread.
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 1254
Registered: 06-2003
Posted on Monday, May 11, 2009 - 02:43 pm:   

1.
I don't know what you mean by "don't find all the answers".
In FlexPDE, you can create plots of any expression you want to evaluate, involving arbitrary functions of variables, parameters, coordinates, etc. You can compute and report integrals of arbitrary functions, and summarize overall data in a SUMMARY page.
What answer is it that you "can't find"?

2.
You can run FlexPDE from a controller by issuing a command-line operation, using command-line switches. See "Command-Line" in the Help Index for a description of these switches.

3.
You can control the FlexPDE script from a controller in several ways:
a) write an entire script from the controller and pass the name to FlexPDE in the command line
b) use an #include 'filename' statement in the shell of your FlexPDE script, and write the included 'filename' from your controller.
c) use TABLE input in your FlexPDE script and write the table from your controller.
Top of pagePrevious messageNext messageBottom of page Link to this message

Fuul (fuullcts)
Member
Username: fuullcts

Post Number: 5
Registered: 05-2009
Posted on Tuesday, May 12, 2009 - 04:24 am:   

In fact, I wanted to know if it was possible to add definitions of some terms (like in the part DEFINITIONS of a FlexPDE script) directly in the command-line. But as I have a lot of definitions to add, I think that the use of a table (or a script include afterwards) wrote in the controller is the best idea.
In addition, is the add of definitions directly in command-line possible or not?

(Sorry for my perfectible english, I just wanted to say that the answers I found on some threads were not suitable for me and my particular case.)
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 1256
Registered: 06-2003
Posted on Tuesday, May 12, 2009 - 02:00 pm:   

No, it is not possible to pass FlexPDE definitions through the command line.
Since multiple scripts can be loaded and run in a single FlexPDE session, there would be ambiguities about which script was to receive the definitions.

I suggest the use of an #include file.
Top of pagePrevious messageNext messageBottom of page Link to this message

morel beatrice (beamorel)
New member
Username: beamorel

Post Number: 1
Registered: 05-2009
Posted on Sunday, May 17, 2009 - 04:01 am:   

Dear Sir, Madam,

my name is Beatrice Morel and I am a new user of FlexPDE (student version). I would like to simulate convective flow of air inside a rectangular box using the adimensionned equations.

I have difficulties in setting the time step, as I get the following error message: 'time step has fallen under 1e-9'...

I have read the user's guide. It seems that I may have inconsistent initial values or discontinuities in the boundary conditions. I have tried setting them smoothly using the swage command. But still it does not work. I have also tried and increase horizontal resolution, but... I have also tried fixing the time step (fixdt on in select), but...

I don't know whether it is a problem in my equations and / or initial and boundary conditions or if it is a numerical problem.

I have attached my script, with some comments inside it (sorry but some of them are in French).

If possible, could you please help us to solve my problem?

Many thanks by advance for your answer.

Best regards,

Beatrice
application/octet-streamconvection
capteur1.pde (5.2 k)

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration