Recently I study how to use the salome_yacs to run code_saturne.
I used the dump scripts to run, I find that the dump scripts maybe overwrite my settings and the GUI seems to become initialized.
but it was not my original intention. is it feasible to run cide_saturne on YACS? if it can work, can you tell me how to do that? thank you so so so much!
This is a very broad question, so I do not know where to start.
I am not sure what you call the dump scripts.
When running code_saturne under OpenTURNS (par sensitivity analysis), I think YACS is used indirectly.
We also had an coupling mode with code_aster, where we used low-level features (CALCIUM library compatibility) which also used YACS, but this low-lvel interface has been removed.
At a high level, using Python scripts, yes, you can use YACS, but how you use it depends on what you need to do.
Using a finer integration (with YACS input/output ports) is not really handled, or you would need to manage all input/output ports as part of your scripts.
Also, if you want to run in parallel, I do not think the basic YACS features handled batch systems, though the associated YDEFX module does. Unfortunately, I do not have any code examples, so if other people on this forum do, they are welcome to share them.
The utility of “dump scripts” is limited. These scripts allow modification of a case’s XML setup, so they may be useful in the following workflow:
set up a computation case.
dump the Python script
adapt commands from this script in cs_user_scripts.py or an external script called by studymanager for a parametric study.
None of that requires YACS. Using YACS, you could also set up a parametric study loop, but there are no current examples to my knowledge. I am not familiar with code_aster YACS scripts, so I cannot compare them..
In any case, the scripts that are dumped by the GUI only manage the xml values. They do not handle the full computation, so need to be included in some other script.
Dear Yvan
recently I want to run the code_saturne in yacs, but I have tried most times that failed. (whatever in Salome or the Salome-CFD). The screenshot has attached.
I don’t know if my code has wrong?
can you help me? (i just want to run the code_saturne in yacs)
here is my code:
import os
from subprocess import check_output
As a general rule, whenever you have an error message indicating a given process has failed, try to check if you have error messages matching the process in question. For code_saturne, that would be the usual error* messages in the RESU/<run_id> run directory, or if you find nothing useful there, in more detailed logs from YACS.
Without more detailed error messages, I can’t help. With code_saturne alone, I could help you increase logging, but I am not familiar enough with YACS to indicate how to troubleshoot an error under YACS. You might find additional help on the salome-platform.org forum.