Jump to content

Romain B

Members
  • Content Count

    20
  • Joined

  • Last visited

Everything posted by Romain B

  1. Hi Alejandro, Have you had any success in identifying the origin of this bug? Thanks! Romain
  2. Hi Alejandro, It just happened again today. It crashed when I connected remotely using WiFi instead of the usual cabled connection. Strange. Anyway, here is the logfile of that instance. I renamed the parameters, and only included the last few simulation steps because the original file is a million lines long. I have however not touched the log's or report's structure. Hope it helps! Thanks, Romain Flux3D_edit.report Flux3D_edit.log
  3. Hi, Well it just happened again. There is no information in the log file. I can however describe a sequence of events: 1. Started a batch simulation on the remote computer (Windows 10 on both computers) using my scripts (by using the "run a script" button from Flux supervisor) 2. Connected several times to that computer through remote desktop using remote desktop to work on other geometries, and check on the advance of my simulation. 3. Connected physically on the remote machine (not through remote desktop), and there it is, the simulation window is gone, without an error message or any trace in the log file. Funny thing is, the window where I was building a new geometry did not disappear. I hope that this description helps, and I'm of course available for more details. Thanks! Romain
  4. Hi Alejandro, Alright, thanks for the feedback. I'll try to pay attention to our units usage next time this happens. Also I'll make sure to check the log file, see if there's any message on crash. However, I hope it just won't happen again :-) Regards, Romain
  5. Hi, At work, I often work on Flux using Windows remote desktop, especially when I start a large batch of simulations, just to quickly check that everything is still running smoothly. However, it happened from time to time that opening the remote session causes the active project window to simply vanish. It disappears and all processes are gone. Only the supervisor is still running. That's pretty annoying and I'd like to know if anybody's encountered this issue. Both machines run on Windows 10 Enterprise, x64. Thanks, Romain
  6. Hi Alejandro, Alright, thanks for the info! The thing is, my script does loads of things and I wouldn't like to slow it down by executing all of it in direct mode. I'll do some tests to see if there's a workaround. Regards, Romain
  7. Hi all, I'd like to know what's the PyFlux command to display the progress bar when solving. I'm not quite sure why, but when I launch my script that opens a project and solves it, the pop-up window with the progress bar of the solving process does not show up. Thanks! Romain
  8. Hello Patrick, Fantastic! Thank you very much. Romain
  9. Hi, I'm back with questions regarding Python/PyFlux. I'm trying to determine the current application in a script. I have two questions: 1. In my tests, I found out that my current application is always Application[2]. Why is there no Application[0], and why is Application[1] the pre-processor? 2. When I type "Application[2]" in the PyFlux command line, I get "ApplicationMagneticTransient3D[2]", which would be good for me to determine the application. Yet, when I assign it to a variable "myVar = Application[2]", a print of that variable returns "2". I can't seem to get the information I want. There must be a python mechanism that I don't understand, and it might be useful for several other tasks in Flux. Thank you very much in advance! Romain
  10. Hi, I definitely agree with qchen regarding the doc :-) I have a similar question: I'm trying to import one of my scripts (imprtScrpt.py) in another script (mainScrpt.py). The imported script only contains functions. The only solution that I've found until now is to call "executeBatchSpy('imprtScrpt.py')" in mainScrpt. When I simply try "import imprtScrpt", mainScrpt exits without any message. Am I doing something wrong? Thank you very much in advance for your help! PS: until now, I've been ok with importing by using executeBatchSpy, but my script is starting to get quite big and I'd like to use imports to use profiling tools (such as doxy).
  11. Great stuff! Thank you very much!
  12. Thanl you for your answer. However I do not want to mesh in SimLab. I would like to keep meshing in Flux for convenience, but I would like to use SimLab to view the mesh that Flux created. Is this possible?
  13. Hi. At a recent Flux conference, I heard that SimLab has very interesting tools for viewing a mesh and I was hoping to use it to observe the meshing of the air in my 3D models, which is an absolute pain in Flux itself. Is there any documentation on how I can open my meshed geometry from Flux in SimLab? Thank you in advance! Romain
  14. Nice. Thanks! Have a nice day.
  15. Alright, good to know that you're working on that doc! Keep up the good work! Have a nice day, Romain
  16. Well, that's exactly it! Thank you! Is there somewhere I can find a list of all the available data types in macros and how to declare them?
  17. Hi, I'd like to know if there is a way to let the user give parameters to a macro without those parameters being Flux parameters (IO or geometric). Simple example: I want to make a macro that computes the parameters of a non-meshed coil. The user can enter the dimensions of the iron core as well as the maximal size of the coil and the thickness of the insulation. Yet, I do not want these input values to be saved as geometric parameters, I only want to keep the four resulting values as parameters that Flux needs. Can I do this? Thanks in advance, Romain
  18. Hi Louis, Thanks for the input! That's an interesting solution. In my case the issue is slightly different, as I want to automatically generate some parametric curves and also store in a text file the definition of the solved scenario. However, I found the "magic" command for me: getType() Example of use: Scenario['MY_SCENARIO'].pilots[0].getType() Scenario['MY_SCENARIO'].pilots[0].intervals[0].getType() It worked wonders for me as it returns a string describing the type of each pilot (Mono or Multi values) and the type of each interval. Have fun :-)
  19. Hi Simon, OK, thanks for your answer and the mementos, I had never seen them. I know this macro but wanted to take it a step further. I'll see what I can do with the information you gave me! Have a nice day, Best regards, Romain
  20. Hi everyone, I am definitely not a Python expert, but I've been using PyFlux for quite some time now. I have always had issues guessing the structure of different classes for my scripts and was wondering if there was somewhere a document describing the different classes in PyFlux? If not, a simple screenshot of the classes définitions might help... I am aware of solutions such as vars(myClassInstance), yet I cannot always find everything I want with this method. Is there another efficient method? I also know that a lot of tricks can be learnt by checking the code of the provided macros... For example, my most recent bother is that I am trying to implement a post-processing script that automatically generates reporting on a given scenario, but the control parameters can be mono or multi value and I cannot know it beforehand. What is the class attribute of the pilot that tells me whether it is mono or multi? Multi defined by step value or by step number? Than you very much for your help! Romain
×
×
  • Create New...