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

cfx5mondata - error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 14, 2012, 12:33
Default cfx5mondata - error
  #1
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
Hello,

I would like to export data of monitor point 1 during the run. I have written in the command line:

e:\...my working directory...>mon.bat -res 0mm_007.res varlist "USER POINT,Monitor Point 1" > output.txt

Content of "mon.bat": "C:\...v121\bin\cfx5mondata"

And the result:

"You must supply a single results file, run directory or monitor data text file."

What is the problem? I have supplied one results file.

Thanks
Roland
Roland R is offline   Reply With Quote

Old   December 17, 2012, 03:40
Default
  #2
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 601
Rep Power: 13
Lance is on a distinguished road
Quote:
Originally Posted by Roland R View Post
e:\...my working directory...>mon.bat -res 0mm_007.res varlist "USER POINT,Monitor Point 1" > output.txt
Could it be because you are missing a - before varlist?
Lance is offline   Reply With Quote

Old   December 17, 2012, 04:30
Default
  #3
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
I tried to use the command with "-" but it doesn't operate...
Roland R is offline   Reply With Quote

Old   December 17, 2012, 04:39
Default
  #4
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 601
Rep Power: 13
Lance is on a distinguished road
Odd. This command works for me:

cfx5mondata -res myres.res -out output.csv -nocoeffloops -varlist "TIME" -varrule "CATEGORY = USER POINT"
Lance is offline   Reply With Quote

Old   December 17, 2012, 06:47
Default
  #5
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
Quote:
Originally Posted by Lance View Post
Odd. This command works for me:

cfx5mondata -res myres.res -out output.csv -nocoeffloops -varlist "TIME" -varrule "CATEGORY = USER POINT"
And which monitor point will be exported by this command? I should exported one determined monitor point.

Thanks
Roland
Roland R is offline   Reply With Quote

Old   December 17, 2012, 06:52
Default
  #6
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
By the way, I tried to apply your commant but the result is same

"You must supply a single results file, run directory or monitor data text file."


I dont understand...
Roland R is offline   Reply With Quote

Old   December 17, 2012, 07:51
Default
  #7
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 601
Rep Power: 13
Lance is on a distinguished road
It will export all monitors to a single file. Have you tried to supply the entire path to your results file?
Lance is offline   Reply With Quote

Old   December 17, 2012, 08:22
Default
  #8
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
Quote:
Originally Posted by Lance View Post
It will export all monitors to a single file. Have you tried to supply the entire path to your results file?
Yes. I open the window of command line in my working directory which contain my result, so i think, this can not cause problem.
Roland R is offline   Reply With Quote

Old   December 17, 2012, 08:40
Default
  #9
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
Ohh....yeah....I found the error.

My first command (mon.bat) has to contain your command too. If it contains just the entire path of mondata then it will not operate.

Thanks
Roland
Roland R is offline   Reply With Quote

Old   December 17, 2012, 08:59
Default
  #10
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
I would like to exported a txt (or csv) file from the monitor points while the running. So the exported txt file should be updated continously.

How can I carry out this?

Thanks
Roland
Roland R is offline   Reply With Quote

Old   December 17, 2012, 09:06
Default
  #11
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 601
Rep Power: 13
Lance is on a distinguished road
Quote:
Originally Posted by Roland R View Post
I would like to exported a txt (or csv) file from the monitor points while the running. So the exported txt file should be updated continously.

How can I carry out this?

Thanks
Roland
change -res "myresults".res to -dir "mydirectory".dir
(this is described in the documentation and "cfx5mondata -help"

You'll have to run the command manually (or make a script do it for you at a prescribed interval) to update the .csv file during the run. Dont know if it is possible to automatically export monitor data to a .csv file after each time step. I guess it can be made with Fortran, but I dont really see the use?
Lance is offline   Reply With Quote

Old   December 17, 2012, 09:52
Default
  #12
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
OK, I understand. I would like to carry out a remeshing method. The new mesh feils will be created previously but I have to know the size of mesh deformation based on the text file monitor point.
Roland R is offline   Reply With Quote

Old   December 17, 2012, 11:43
Default
  #13
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 273
Rep Power: 13
brunoc is on a distinguished road
A much easier way to do this is to open your res file in the CFX Solver Manager (File > Monitor Finished Run), go to the tab with the data you want, right-click it and select 'Export Plot Data'.

Cheers
brunoc is offline   Reply With Quote

Old   December 17, 2012, 12:32
Default
  #14
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 601
Rep Power: 13
Lance is on a distinguished road
Why not make the simulation automatically stop when the deformation reaches a predefined limit? This should be possible using CEL expressions.
Lance is offline   Reply With Quote

Old   December 17, 2012, 13:14
Default
  #15
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 273
Rep Power: 13
brunoc is on a distinguished road
Quote:
Originally Posted by Lance View Post
Why not make the simulation automatically stop when the deformation reaches a predefined limit? This should be possible using CEL expressions.
That is a good idea. Another option if you don't want to parse the mon data file is to run a simple script that opens CFD Post and retrieves that displacement value you're looking for. It is something fairly simple to do.
brunoc is offline   Reply With Quote

Old   December 18, 2012, 09:55
Default
  #16
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
Thanks for you helpfulness!

Yes, as you said; I have to define a condition in the interrupt control menu for the mesh deformation. I will generate the mesh files previously for case of every mesh deforamtion but I have a problem. For example my deformation is 5mm. I have two pregenerated mesh files for 4mm and 6mm, but the solver doesn't know which files will be selected for the next running period. Therefore I have to generate a txt (or dat) file (with cfx5mondata) which contains the deformaiton (or mesh velocity) and the solver will select the next mesh file based on this txt file (with an if function).

I think, I have to write for example a matlab code and it will select the mesh files.

regards
Roland
Roland R is offline   Reply With Quote

Old   December 18, 2012, 11:49
Default
  #17
Senior Member
 
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 273
Rep Power: 13
brunoc is on a distinguished road
If you have pre-generated meshes at specific displacements, then just go with the option to stop the solver at these positions. That would be the easiest solution.

In your case, if the solver is stopping due to bad quality at 5mm, have it stop earlier at 4mm and swap the mesh.
brunoc is offline   Reply With Quote

Old   December 20, 2012, 10:10
Default
  #18
Senior Member
 
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 9
Roland R is on a distinguished road
OK, I understand you. I will think of this solution but just in next year

Thanks for your suggestions!

Happy New Year!

Roland
Roland R is offline   Reply With Quote

Old   May 21, 2015, 09:54
Post
  #19
Member
 
Join Date: Oct 2014
Posts: 43
Rep Power: 4
kar.coep is on a distinguished road
Hi Lance,

Quote:
change -res "myresults".res to -dir "mydirectory".dir
(this is described in the documentation and "cfx5mondata -help"

You'll have to run the command manually (or make a script do it for you at a prescribed interval) to update the .csv file during the run. Dont know if it is possible to automatically export monitor data to a .csv file after each time step. I guess it can be made with Fortran, but I dont really see the use?
with reference to this, can you please elaborate how to run the cfx5mondata to get csv file during run? and if any basics on how to start on fortran to have export after every iteration?

Thanks,
Kartiki
kar.coep is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 18:43
Saving ParaFoam views and case sail OpenFOAM Paraview & paraFoam 9 November 25, 2011 16:46
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 23:07.