CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Editing .def file and changing file path

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2020, 09:24
Post Editing .def file and changing file path
  #1
New Member
 
Mikael
Join Date: Nov 2019
Posts: 9
Rep Power: 6
mikaeldomingo is on a distinguished road
Hi everyone,

I have recently started working on my analysis on the cluster. My analysis takes a lot time because I want to see the transient response of the system. I initialited steady state results to shorten the analysis time while working on my local computer. When initialization is done on the cfx setup, you choose the .res directory and it is automatically added to the .def file. After I finished setup, I uploaded the .def file and initialization file (.res file) to the cluster server. Now, I have to change the directory in .def file as directories in clustes and my local is are not same. I open .def file as a text file and try to edit it. I directly copied the .res file directory and pasted it into the .def file. However, when I try to start my analysis, I get this error below.

WARNING: Did not unuse /cm/shared/modulefiles
An error has occurred in cfx5solve:

Error reported by IO module: recreate_indextable: bad dataset length
536977223

An error has occurred in cfx5solve:

Error reported by IO module: iocnt: open the primary file failed

An error has occurred in cfx5solve:

Error from IO module while opening /RS/users/m/initialize
/CFX.def:

"iocnt: open the primary file failed"

IO_FILE_FMT_ERR(15): IO dataset has incorrect format.

An error has occurred in cfx5solve:

Error reported by IO module: recreate_indextable: bad dataset length
536977223

An error has occurred in cfx5solve:

Error reported by IO module: iocnt: open the primary file failed

An error has occurred in cfx5solve:

Error from IO module while opening /RS/users/m/initialize
/CFX.def:

"iocnt: open the primary file failed"

IO_FILE_FMT_ERR(15): IO dataset has incorrect format.

Secondly, I also realized that directories in .def file are not totally same with the file directory. In .def file, there is extra symbols like "" and "." used. If I examplify, the correct directory is users/m/cfx/cfx.res, but in .def file it is like users/ m/ cf\ x/cfx.res. Why is cfx using these characters and is there a pattern for this ?

Thanks for your helps.
mikaeldomingo is offline   Reply With Quote

Old   January 17, 2020, 09:42
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,869
Rep Power: 33
Opaque will become famous soon enough
The .def file is compressed, and it cannot be edited with any text editor. If you did, and save, you have corrupted the file.

Perhaps you extracted the commands file from the .def, and you edited the command file?
Opaque is offline   Reply With Quote

Old   January 17, 2020, 09:48
Default
  #3
New Member
 
Mikael
Join Date: Nov 2019
Posts: 9
Rep Power: 6
mikaeldomingo is on a distinguished road
I opened .def file with nopepad and edited it. As you said, the file is corrupted.

Do you know how I can initialize steady state results while working on the cluster ?

Thank you.
mikaeldomingo is offline   Reply With Quote

Old   January 17, 2020, 10:02
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,869
Rep Power: 33
Opaque will become famous soon enough
you can use the help for cfx5solve, and see how to provide initial values file.

cfx5solve -help
Opaque is offline   Reply With Quote

Reply

Tags
batch mode, cfx, clusters, initialization


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Error running #codeStream/functions wmake lnInclude fails to open *.H Files tarik OpenFOAM Installation 8 June 14, 2020 04:12
.cfx and .def file names not changing nick.l.thomas CFX 1 November 8, 2018 06:27
Error: "Cannot find file points" related to changing parallelized code to serial? Suyf OpenFOAM Running, Solving & CFD 0 February 12, 2015 05:31
Changing Polynomial Properties of species from 8 to 16 coefficients Kenna OpenFOAM Programming & Development 1 November 20, 2013 04:44
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 06:49.