no mehs_output

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.
listing.txt (22.7 KB)
setup.xml (6.92 KB)

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

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.
cs_user_scripts.py (8.3 KB)

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

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.

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

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.

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

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

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