Closed QB-Lin closed 1 month ago
In solver_load_cmd_dict
you only need to include commands required before starting up Abaqus/OpenFOAM. The executable itself is not needed. I suspect for you this will be:
machine_name = 'localhost'
solver_load_cmd_dict = {
'localhost': {
'abaqus.v2024': 'export LM_LICENSE_FILE="29X00@localhost"',
'openfoam.v11': 'source $FOAM_BASH'
}
}
All other problems seem to follow from the first one.
Thank you very much. I solved it! Now I had another problem. I ran "python3 run_simulation.py" in the terminal, the system report that CSM_Time1Surface0Output.dat could not be generated the in Abaqus.
" /usr/local/1_software/3_pyfsi/coconut/coupling_components/solver_wrappers/abaqus/abaqus.py:587: UserWarning: SolverWrapperAbaqus2024 overwrites incrementation settings in 202409231120.inp, make sure this is intended warnings.warn(f'{self.class.name} overwrites incrementation settings in ' Traceback (most recent call last): File "/usr/local/1_software/Miniconda3/lib/python3.12/shutil.py", line 847, in move os.rename(src, real_dst) FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/1_software/3_pyfsi/1_phd_Case/202409182050-plate-validate/202409222000-cocoNut/2_ABAQUS/CSM_Time1Surface0Output.dat' -> '/usr/local/1_software/3_pyfsi/1_phd_Case/202409182050-plate-validate/202409222000-cocoNut/2_ABAQUS/CSM_Time0Surface0Nodes.dat'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/1_software/3_pyfsi/1_phd_Case/202409182050-plate-validate/202409222000-cocoNut/run_simulation.py", line 12, in
Here is my case file
Your issue looks like a user error, rather than a code issue (any behavior that does not meet reasonable expectations). Unfortunately we don't have the time nor capacity to provide extensive user support. I would recommend to have a close look to the documentation (especially the Abaqus documentation in your case) and/or the code itself.
I want to couple Abaqus v2024 and OpenFOAM-v11, how do I set the variable 'abaqus.v2024' in “solver_modules.py”. My operation system is Ubuntu 20.04.6 lts.
lqb added
'localhost': { 'abaqus.v2024': './usr/local/1_software/ABAQUS2024/commands/abaqus' '&& export LM_LICENSE_FILE="29X00@localhost"', 'openfoam.v11': 'source /usr/local/1_software/OpenFOAM-v11/OpenFOAM-11/etc/bashrc' #sh code to source openfoam-v11 bashrc---lqb-202409171900 } } ”
###############################################
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/1_software/3_pyfsi/coconut/examples/tube/openfoam3d_abaqus3d/setup_case.py", line 25, in
csm_env = tools.get_solver_env(csm_solver, csm_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/1_software/3_pyfsi/coconut/tools.py", line 391, in get_solver_env
raise RuntimeError(f'Module load command for solver wrapper {solver_name} failed.')
RuntimeError: Module load command for solver wrapper abaqus.v2024 failed.
”.
########################################################