no mehs_output

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
yany
Posts: 60
Joined: Fri Aug 04, 2017 11:02 pm

no mehs_output

Post 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.
Attachments
listing.txt
(22.7 KiB) Downloaded 188 times
setup.xml
(6.92 KiB) Downloaded 192 times
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: no mehs_output

Post 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
yany
Posts: 60
Joined: Fri Aug 04, 2017 11:02 pm

Re: no mehs_output

Post 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.
Attachments
cs_user_scripts.py
(8.3 KiB) Downloaded 199 times
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: no mehs_output

Post 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
yany
Posts: 60
Joined: Fri Aug 04, 2017 11:02 pm

Re: no mehs_output

Post 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.
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: no mehs_output

Post 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
yany
Posts: 60
Joined: Fri Aug 04, 2017 11:02 pm

Re: no mehs_output

Post 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.
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: no mehs_output

Post 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
yany
Posts: 60
Joined: Fri Aug 04, 2017 11:02 pm

Re: no mehs_output

Post 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
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: no mehs_output

Post 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
Post Reply