Mr. Nozaki Fumiya 0 Report post Posted April 24, 2013 Hi, I'd like to know how to connect two external softwares to CAESES.In particular, I'm trying to connect CAESES to harpoon(meshing tool)and OpenFOAM(simulation tool) together. Harpoon imports the trimesh CAESES created and exports the mesh filesin OpenFOAM format and OpenFOAM runs with these mesh files and otherinput files. I have succeeded in connecting CAESES to harpoon and OpenFOAM, respectively,but I have failed in connecting these softwares to CAESES together. In this case,I think I have to set up connection between harpoon and OpenFOAM, but I don'tknow how to do that. Could you tell me how to set up my case? P.S. I'm trying the setting like the following:computationLocal Application: harpoonInput Geometry: trimesh (Format: OpenFOAM STL)Input Files: config file(necessary when harpoon is executed in batch mode)computation01Local Application: simpleFoamInput Files:system/controlDict, system/fvSchemes, system/fvSolution,constant/RASProperties, constant/transportProperties,0/U, 0/p Thanks in advance for your help. Best regards,Fumiya Share this post Link to post Share on other sites
Jörg 29 Report post Posted April 25, 2013 Hi Fumiya, Please find attached two screenshots which show how to "connect" two computations:Define an output file (e.g. mesh.dat) for the first computation (harpoon).Optionally, set the file type to "reference" (CAESES/FFW will not try to load it into the GUI)Add an input file for the second computation (OpenFOAM) which will be the output file of the first computation (you can choose any file, we will change it in the next step...)For this entry, you need to enter an expression such as harpoon.getResults().getResultsFileName("mesh.dat") Step 4 generates the dependency between the two computations! I hope this helps! Best regardsJoerg Share this post Link to post Share on other sites
Jörg 29 Report post Posted April 25, 2013 Just a little remark: We detected some problems with this functionality in version 3.0.3, so possibly you need a new version (we are working on it...). Joerg Share this post Link to post Share on other sites
Mr. Claus Abt 14 Report post Posted April 26, 2013 Maybe it would be a good option to make the resultfiles from one computation listed and available for selection in the "add inputFiles" of other computations that do not supply the first computation with other results. That would be straightforward to use and reduces the risk of recursion. Share this post Link to post Share on other sites
Jörg 29 Report post Posted April 26, 2013 Hi Claus, Yesterday, we already discussed such an option and figured out two possible solutions :-) so yes, we can still make it more user-friendly! Share this post Link to post Share on other sites
Mr. Nozaki Fumiya 0 Report post Posted April 30, 2013 (edited) Hi Joerg, Thank you for your reply and considerations. I tried your advice and found that the result files of the first computationare not copied at all.Is it one of the problems you detected in post #3? I have another question.OpenFOAM reads the mesh files(boundary, cells, faces, points) andharpoon is able to output these files with the name attached(e.g., hoge.boundary, hoge.cells, hoge.faces, hoge.points). Is it possible to read the "hoge.boundary" file by the name of "boundary"in CAESES? Or, do I have to request the developer of harpoon to changethe functionality? Thanks for your help,Fumiya Edited May 1, 2013 by Mr. Nozaki Fumiya Share this post Link to post Share on other sites
Jörg 29 Report post Posted May 3, 2013 Hi Fumiya, Copy: Is it ok for your to wait for the next minor release (which comes very soon)? I think we fixed the problem. File extensions: I am not sure whether I understand correctly. Is it just a rename action for your harpoon output files? That's something you can do in a script (either the OpenFOAM script, or the harpoon script?). CheersJoerg Share this post Link to post Share on other sites
Mr. Nozaki Fumiya 0 Report post Posted May 6, 2013 Hi Joerg, Thank you for your reply and advice. As to the connection issue, I look forward to the next release.Regarding my question about the file extensions, it is just a rename action as you expect.I will try using the scripts. Thanks again,Fumiya Share this post Link to post Share on other sites
Jörg 29 Report post Posted May 6, 2013 Hi Fumiya, Perfect! CheersJoerg Share this post Link to post Share on other sites
Mr. Nozaki Fumiya 0 Report post Posted May 9, 2013 Hi Joerg, Thank you for releasing the new version 3.0.4.I have started using it to test the connection issue. I have a few additional questions about the software connections.Could you answer the followings? 1)If I connect more than two external softwares to CASES and want themto run automatically, is the following procedure correct? My procedure:Select several computations from the "Computations & Results" in the"Connections" tab and click the green triangle button shown in the attachedpicture(Force Update / Run on Selected Object(s)) 2)What determines the order of execution of the external softwaresif I follow the above procedure? Thanks,Fumiya Share this post Link to post Share on other sites
Jörg 29 Report post Posted May 10, 2013 Hi Fumiya, In your recent procedure (Harpoon & OpenFOAM) you only need to run the computation of OpenFOAM (if you have followed post #2). Since there is a request for the result file of Harpoon in the software connector of OpenFOAM, Harpoon will be triggered automatically. By using this "concatenation", you can link several external tools. We usually do not select all computations and run them at once, it does not make any sense wrt the update mechanisms of CAESES/FFW. Does this help? Joerg Share this post Link to post Share on other sites