|
[Sponsors] |
December 14, 2012, 11:33 |
cfx5mondata - error
|
#1 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
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 |
|
December 17, 2012, 02:40 |
|
#2 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
||
December 17, 2012, 03:30 |
|
#3 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
I tried to use the command with "-" but it doesn't operate...
|
|
December 17, 2012, 03:39 |
|
#4 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Odd. This command works for me:
cfx5mondata -res myres.res -out output.csv -nocoeffloops -varlist "TIME" -varrule "CATEGORY = USER POINT" |
|
December 17, 2012, 05:47 |
|
#5 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
||
December 17, 2012, 05:52 |
|
#6 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
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... |
|
December 17, 2012, 06:51 |
|
#7 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
It will export all monitors to a single file. Have you tried to supply the entire path to your results file?
|
|
December 17, 2012, 07:22 |
|
#8 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
||
December 17, 2012, 07:40 |
|
#9 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
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 |
|
December 17, 2012, 07:59 |
|
#10 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
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 |
|
December 17, 2012, 08:06 |
|
#11 | |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Quote:
(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? |
||
December 17, 2012, 08:52 |
|
#12 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
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.
|
|
December 17, 2012, 10:43 |
|
#13 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
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 |
|
December 17, 2012, 11:32 |
|
#14 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Why not make the simulation automatically stop when the deformation reaches a predefined limit? This should be possible using CEL expressions.
|
|
December 17, 2012, 12:14 |
|
#15 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
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.
|
|
December 18, 2012, 08:55 |
|
#16 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
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 |
|
December 18, 2012, 10:49 |
|
#17 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
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. |
|
December 20, 2012, 09:10 |
|
#18 |
Senior Member
Roland Rakos
Join Date: Mar 2009
Posts: 131
Rep Power: 17 |
OK, I understand you. I will think of this solution but just in next year
Thanks for your suggestions! Happy New Year! Roland |
|
May 21, 2015, 09:54 |
|
#19 | |
Member
Join Date: Oct 2014
Posts: 44
Rep Power: 11 |
Hi Lance,
Quote:
Thanks, Kartiki |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
c++ libraries and solver compiling | vaina74 | OpenFOAM Installation | 13 | February 3, 2012 17:43 |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 15: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 |