Jump to content
Mr. Nozaki Fumiya

How to connect two external softwares to CAESES

Recommended Posts

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 files

in OpenFOAM format and OpenFOAM runs with these mesh files and other

input 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't

know how to do that.

 

Could you tell me how to set up my case?

 

 

P.S. I'm trying the setting like the following:

  • computation

Local Application: harpoon

Input Geometry: trimesh (Format: OpenFOAM STL)

Input Files: config file(necessary when harpoon is executed in batch mode)

  • computation01

Local Application: simpleFoam

Input 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

Hi Fumiya,

 

Please find attached two screenshots which show how to "connect" two computations:

  1. Define an output file (e.g. mesh.dat) for the first computation (harpoon).
  2. Optionally, set the file type to "reference" (CAESES/FFW will not try to load it into the GUI)
  3. 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...)
  4. 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 regards

Joerg

post-8-0-50001400-1366900689_thumb.png

post-8-0-89271200-1366900693_thumb.png

Share this post


Link to post
Share on other sites

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

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

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

Hi Joerg,

 

Thank you for your reply and considerations.

 

I tried your advice and found that the result files of the first computation

are 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) and

harpoon 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 change

the functionality?

 

Thanks for your help,

Fumiya

Edited by Mr. Nozaki Fumiya

Share this post


Link to post
Share on other sites

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?).

 

Cheers

Joerg

Share this post


Link to post
Share on other sites

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

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 them

to 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 attached

picture(Force Update / Run on Selected Object(s))

 

2)What determines the order of execution of the external softwares

if I follow the above procedure?

 

Thanks,

Fumiya

post-65-0-58986800-1368069311_thumb.png

Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...