Yukai 0 Report post Posted July 4, 2024 Hello! I would like to ask, after setting up and completing the software connection, I need to run it once to ensure that Openfoam (CFD) is triggered. Does this step need to be performed every time I modify any parameter in Openfoam? At present, if I don't execute it once in the software connection interface, all the parameters I adjusted will return to the original settings. In addition, after I archived the file, some of the originally set parameters changed back to their original state when loading the file, which troubled me very much. There were even cases where all the files were lost after loading and I had to restart the settings. I would like to ask if there is any way to solve it? Thanks for your help!!! Best Regards YuKai Share this post Link to post Share on other sites
Mr. Heinrich von Zadow 12 Report post Posted July 5, 2024 Hi YuKai, where exactly do you "modify any parameter in Openfoam"? Do you refer to changes in the template files of the software connector? Any changes in a project that you saved should never change back after re-opening the project. If you arrive at a different state the only reaso I could imagine is that you shoose to recover a crashed file upon opening. In this case, the recovery file and not the project file will be opened which could bring you to a different project status. Best regards, Heinrich Share this post Link to post Share on other sites
Yukai 0 Report post Posted July 5, 2024 1 hour ago, Mr. Heinrich von Zadow said: Hi YuKai, where exactly do you "modify any parameter in Openfoam"? Do you refer to changes in the template files of the software connector? Any changes in a project that you saved should never change back after re-opening the project. If you arrive at a different state the only reaso I could imagine is that you shoose to recover a crashed file upon opening. In this case, the recovery file and not the project file will be opened which could bring you to a different project status. Best regards, Heinrich HI Heinrich Sorry for causing you trouble For example, I clicked controlDict in the Input File interface to enter and modify endtime, setting it as a modifiable parameter. I also set some parameters in snappyhexmesh. In the software connector I have to run it first to trigger CFD, is this step correct? So if I modify parameters later, do I need to do it again in the software connector? I tried to modify a parameter and then saved and closed it normally. After reopening the project, the parameters returned to the unmodified values. I'll go look for it and see if it's a problem with my computer. Thanks for your help!!! Best Regards YuKai Share this post Link to post Share on other sites
Mr. Heinrich von Zadow 12 Report post Posted July 5, 2024 Dear Yukai, no worries, just had to make sure I understand the problem. If you want to trigger a CFD through CAESES you can either manually run the software connector or perform an optimization which will automatically trigger a CFD evaluation for every design variant. If you want to change the configuration you can change the templates in the software connector (as you described) or modify an input file on your computer to which the software connector refers. Generally speaking you want to use the template approach if you want to modify the input file for each design individually. If the input file is the same for all design variants, it is enough to supply that file to CAESES as a reference. Any changes you make in a CAESES project will be saved (temporarily in a recovery file and permanently once you manually save the project). What I could imagine is, that you changed a parameter for a particular design (i.e. after a design engine run, you can switch into any of the evaluated designs, unlock them and do modifications) -- these changes will not be reflected in the baseline design. Maybe this is what got you puzzled? If you can reproduce the described behavior, I'll gladly take a look to find out whats going wrong. Cheers, Heinrich Share this post Link to post Share on other sites
Yukai 0 Report post Posted July 5, 2024 5 hours ago, Mr. Heinrich von Zadow said: Dear Yukai, no worries, just had to make sure I understand the problem. If you want to trigger a CFD through CAESES you can either manually run the software connector or perform an optimization which will automatically trigger a CFD evaluation for every design variant. If you want to change the configuration you can change the templates in the software connector (as you described) or modify an input file on your computer to which the software connector refers. Generally speaking you want to use the template approach if you want to modify the input file for each design individually. If the input file is the same for all design variants, it is enough to supply that file to CAESES as a reference. Any changes you make in a CAESES project will be saved (temporarily in a recovery file and permanently once you manually save the project). What I could imagine is, that you changed a parameter for a particular design (i.e. after a design engine run, you can switch into any of the evaluated designs, unlock them and do modifications) -- these changes will not be reflected in the baseline design. Maybe this is what got you puzzled? If you can reproduce the described behavior, I'll gladly take a look to find out whats going wrong. Cheers, Heinrich HI Heinrich I understand the software connector part! Thank you very much! The part where the archive disappears seems to be different from the process you described. The problem I encountered (as you said is unlikely to happen), if it happens next time I will try to use screen recording and come back to you for advice! Thanks for your help!!! Best Regards YuKai Share this post Link to post Share on other sites