Page 1 of 1

no mehs_output

Posted: Mon Sep 03, 2018 8:57 am
by yany
Hello Everyone,

I am modeling a case a simple aerofoil. But the file of mesh_output doesn't output, which I need used as mesh input on archer. I don't know why. I attached the setup.xml and listing.

Thank you for your help.

All the best, Yany.

Re: no mehs_output

Posted: Mon Sep 03, 2018 10:01 am
by Yvan Fournier
Hello,

To "listing" does not seem to be complete. Does the code crash or hang ?

Also, if the mesh is not modified, the mesh_output is removed, so using the "preprocess" mode is better if you are planning a separate run. The mesh_output generation may also be deactivated or forced by setting mesh->modified in cs_user_mesh.c

Regards,

Yvan

Re: no mehs_output

Posted: Mon Sep 03, 2018 10:39 am
by yany
Hello Yvan,
I think it's because the mesh is not modified, as I change another mesh, the file mesh_output can output. The problem is that I used the file attached to restart the case on archer:

if domain.param == None:
domain.mesh_input = "../MESH/mesh_output"
domain.partition_input = None
domain.restart_input = "RESU/checkpoint"

If there the no mesh_output file, How can I do that? Thank you.

Yany.

Re: no mehs_output

Posted: Mon Sep 03, 2018 11:00 am
by Yvan Fournier
Hello,

Using the GUI is the simplest way of choosing this mode.

Otherwise, with cs_user_scripts.p, search for "--preprocess" in the comments.

Regards,

Yvan

Re: no mehs_output

Posted: Mon Sep 03, 2018 11:13 am
by yany
I'm sorry Yvan, I can't get your point. :cry: :cry:

Because the code_saturne on archer dosen't support the format of Cgns, So I need to get the mesh_output in my own computer and make it as the mesh input on arhcer. The problem is the mesh_output didn't exist. So how can I get that? I have tried preprocess mode.

Thank you!
Yany.

Re: no mehs_output

Posted: Mon Sep 03, 2018 12:56 pm
by Yvan Fournier
Hello,

If you only need to convert the CGNS file, the "mesh_input" file is all you need to transfer to Archer.

So instead of --preprocess, set domain.exec_solver to false in the user_scripts.py (in define_domain_parameters).

Regards,

Yvan

Re: no mehs_output

Posted: Mon Sep 03, 2018 4:35 pm
by yany
Hi Yvan,
Thank you.
You mean mesh_input can be used as followed on archer?

if domain.param == None:
domain.mesh_input = "../MESH/mesh_input"
domain.partition_input = None
domain.restart_input = None

I have set domain.exec_solver to false in the user_scripts.py . But it still didn't works. The error is no cs.solver output.

Re: no mehs_output

Posted: Mon Sep 03, 2018 4:45 pm
by Yvan Fournier
Hello,

Yes, you can use the mesh_input as you describe (you can place it anywhere, as long as the path is correct).

Best regards,

Yvan

Re: no mehs_output

Posted: Mon Sep 03, 2018 5:48 pm
by yany
Hi Yvan,

Thank you so much for your kind help . It now works. But I have one more question. What's is the different between the cs.solver and run.solver? In this case I can got run.solver, but no cs.solver......

Yany

Re: no mehs_output

Posted: Mon Sep 03, 2018 10:03 pm
by Yvan Fournier
Hello,

cs_solver is the executable, run_solver the script. There might be no cs_solver when there are no user subroutines, in which case the default cs_solver in the code installation library is used (thar path appears in run_solver).

Best regards,

Yvan