Search results for query: *

  1. S

    TypeOnlyBinder

    Well ok, i gave up, ill just re-create the files from scratch, non of the methods seem to work unless you have a realitvely simple well thought out structure which I didn't. At least not without being an deserialisation expert.
  2. S

    TypeOnlyBinder

    Hi, i'm want to deserialize an object from a different assembly and came across this example below; however the example refers to " return defaultBinder.BindToType(assemblyName, typeName);" but when i run the code the defaultBinder is null, (new BinaryFormatter().Binder is null) Is there...
  3. S

    Array Speed

    Thanks guys, im still working through lots of these suggestions, heres a video showing the nascent app... Just for interest really.
  4. S

    Array Speed

    There used to be, and probably still are, short cut hand/graphical methods for solving the problem. Luckily i just missed the graphics card stage (graduated 1986). A tower an hour was the goal i believe back then. Today some of the simpler columns are solving in 14ms which is mind blowing...
  5. S

    Array Speed

    I just tried it and it didnt help, which surprises me actually, would have thought the array access would have had some overhead. It's the last case below, added two more cases to SkyDivers set. Next to last case i realised all I need in the were fixed numbers (updated peridoically)...
  6. S

    Array Speed

    It varies, between 10 and 200, depending on the problem. I have a test bed of about 50 different tower designs, to make sure after any changes they still all converge. The number of components can also very from 2 as a minimum to about 75 on each tray. Usualy though, the columns with more...
  7. S

    Array Speed

    Its a distillation tower simulation, which would be part of a potentially much larger simulations with recycles, it just needs to iterate around as fast as possible really. The speed is actually pretty decent allready, its not bad compared to some very expensive commercial simulators in...
  8. S

    Array Speed

    If i was running the sub-routine 96,000,000 times there is a huge speed up using parralell, but in reality its called in batches of around 100, so makeing it parrallel actually slows it down considerably due to the overhead of calling the parrallel routines. I did shave off a few ms in other...
  9. S

    Array Speed

    Good point! It isn't at the moment. Some times there are 10 trays and 70 components, other times 200 trays and 2 components, so which part and when, to be made parrallel, will need a test/switch, there is some overhead in making things parralell so i found in the past it only helps under some...
  10. S

    Array Speed

    startic readonly double Baset = 273.15 +25; static readonly double Baset2 = Baset * Baset; etc... The function is pretty small but gets called 9.6 million times typically. For the speed test I am just running a series of tests using the VS test enviroment, in .Net 6 i get 45s, in .Net 7 i get...
  11. S

    Array Speed

    BTW has nayone notived Core 7 being about 10% slower than Core 6?
  12. S

    Array Speed

    is there any possible way to speed up the following method? baset is 298.15K, baset2 is baset*baset etc I tried converting the divides to multipliers which made no difference. private static double IdealGasMolarEnthalpy(Temperature Tk, BaseComp sc) { double VE = 0...
  13. S

    Resolved Looking for a suitable example of threaded windows forms app

    I think the fly by wire approach is still feasible, going to try it, the solver will be ok if numbers change it just can't handle topogrophy changes on the fly. So if i block them from happening while solving it should be ok. Using a combination of everything both respondees have suggested...
  14. S

    Resolved Looking for a suitable example of threaded windows forms app

    I have no idea what your point is, if something is running and configured by an interface then in that mode its obviously dependant on the interface. It's kind of implied by the word interface. I fail to see what the point of your comment is. If my use of the word independant has triggered...
  15. S

    Resolved Looking for a suitable example of threaded windows forms app

    Thanks, Ill have a look at that.
  16. S

    Resolved Looking for a suitable example of threaded windows forms app

    The engine can be run entirely independently from the graphics via text files. Alternatively the engine can be configured and run via the graphics interface. So the engine does not need the graphics interface at all to be able to build a model and run. However, clearly when using the...
  17. S

    Resolved Looking for a suitable example of threaded windows forms app

    Just had a thought, if i serialise and then deserialise the flowsheet that might be the simplest way to clone it?
  18. S

    Resolved Looking for a suitable example of threaded windows forms app

    Possibly. The engine objects contained within the flowsheet are pernanently attached to the graphical objects, the flowsheet is then built up from all of the engine objects before solving and then solved, it might work ok to simply replace the engine objects on each graphical object after the...
  19. S

    Resolved Looking for a suitable example of threaded windows forms app

    Yes it may be possible to reconfigure the program to do this, i can see how that would solve the problem, I need to think how to re-configure it all, but may be possible without breaking too much of the code. Actually i think im going to just clone the flowsheet, solve it as per your...
  20. S

    Resolved Looking for a suitable example of threaded windows forms app

    I appreciate the help you often provide, in this case the MS examples are just far too simplistic and enable/disable controls which is not what i want to do. For example various tabs (including the visual designer tab) on the "ColumnDLG" sub-flowsheet are checking and rewriting the solver...
Back
Top Bottom