Personal tools
You are here: Home Forum Extension of the platform How can i do to run the code_saturne(or CFDSTUDY) in Yacs

How can i do to run the code_saturne(or CFDSTUDY) in Yacs

Up to Extension of the platform


This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.

How can i do to run the code_saturne(or CFDSTUDY) in Yacs

Posted by fywang2018 at November 02. 2021

Hello!

Recently i want to run the code_saturne in Yacs.

I try to write some code in Yacs whatever in salome or salome_cfd, but the result show the wrong. (attached the screenshot)

maybe my code has wrong? here is my code:

import os
from subprocess import check_output

case_path = '/home/wfy/20210823.cas/CASE1'
xml_path = os.path.join(case_path, 'DATA/setup.xml')
os.chdir(case_path)
out = check_output(['code_saturne', 'run', '--param', xml_path]).decode()

 

I don't konw how can i do to run the code_saturne, i just want to run the code_saturne in YACS. is there anyone can help me?? please~~

thank you for you help!!

Attachments

Re: How can i do to run the code_saturne(or CFDSTUDY) in Yacs

Posted by franco.ota at November 03. 2021

hello,

it might help you,

Automating Code Aster Simulation with YACS

https://www.youtube.com/watch?v=ZeIwLHK2CHI&list=PLvkU6i2iQ2frHUfTg-YYjKRwUuMK_Rg9k&index=3

regards

Re: How can i do to run the code_saturne(or CFDSTUDY) in Yacs

Posted by fywang2018 at November 04. 2021

Previously Franco Otaola wrote:

hello,

it might help you,

Automating Code Aster Simulation with YACS

https://www.youtube.com/watch?v=ZeIwLHK2CHI&list=PLvkU6i2iQ2frHUfTg-YYjKRwUuMK_Rg9k&index=3

regards

Hello! thank you very much for provide the video. i have see this vedio. the vedio explain how to use the code_aster in yacs. but it seems that different between code_saturne and yacs.

I still can't solve my problem. Have you used the code_saturne in yacs??

please help  me~~~ i am so sad that can't solve this problem

 

Re: How can i do to run the code_saturne(or CFDSTUDY) in Yacs

Posted by fywang2018 at November 11. 2021
hello~~~~
 
anyone who can help me, please :(
thank you so much


This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.

Powered by Ploneboard
Document Actions