Hi Srinath
I have read your
Hi Srinath
I have read your instruction of the following commands. i would pleased to ask some question: 1. how can i create the writeProbes.H and createProbes.Hfile? and where should be its location 2. can i copy the .h zip files which you put it in the instruction instead of making the .h files separately? 2. does your command will solve the problem in terms of the working with probe to create the graphs? I am trying to probe the fluid flow through the pipe and the graph in all parts of the pipe is laminar , and i can not probe the u part of the pipe flow. i am using 1.4 version. Many Thanks in advance Armin Now after saving Xoodles.C, create the file writeProbes.H with the following contents: UProbe.write(); pProbe.write(); Now, you must create the file createProbes.H with the following contents: Info<< "Reading probeLocations\n" << endl; IOdictionary probeLocations ( IOobject ( "probeLocations", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE ) ); Info<< "Constructing probes\n" << endl; Probe<volvectorfield> UProbe(probeLocations, U); Probe<volscalarfield> pProbe(probeLocations, p); Finally, you must create the file writeNaveragingSteps.H with the following contents: if (runTime.outputTime()) { OFstream nAveragingStepsFile ( runTime.path()/runTime.timeName()/"uniform"/"nAveragingSteps.raw" ); if (nAveragingStepsFile.good()) { nAveragingStepsFile << nAveragingSteps << endl; } else { FatalErrorIn(args.executable()) << "Cannot open file " << nAveragingStepsFile.name() << abort(FatalError); } } |
Sorry for the late reply. I wa
Sorry for the late reply. I was busy at a conference and my PhD candidacy exam.
1. how can i create the writeProbes.H and createProbes.Hfile? and where should be its location Use any text editor? They should be located in the same directory as Xoodles.C. 2. can i copy the .h zip files which you put it in the instruction instead of making the .h files separately? Yes, sure. 2. does your command will solve the problem in terms of the working with probe to create the graphs? I don't understand what you are saying. Can you rephrase your question? |
Hello Srinath,
I have added
Hello Srinath,
I have added the parts you have mentiond to Xoodles solver, and I have compiled it without any problem, but when I run a case using this modified solver, it dosn't write out any data file (for specified points of interest), it just runs like before modifications and just write usual files in time directories! Could you please let me know if I am making a mistake or if not were I should find the output ? many thanks in advance, Ali |
If the specified points are in
If the specified points are in the interior of the geometry, there should be a probes directory that gets created. Check again. Also please make sure you are running the right solver (i.e. the one you just rebuilt). Paste your log file upto a few timesteps here if you can. There will be a line that says 'Creating Probes'.
|
Hello Srinath,
Thank you v
Hello Srinath,
Thank you very much for your guidance, I think the points that I had specified were out of domain because I was using a scale factor for the mesh. but now I have corrected it and it is working very well. Kind regards, Ali |
Gentlemen:
I have a question
Gentlemen:
I have a question on the probes function in OpenFoam. In the dambreak problem I would like to define a point (x,y,z) in the fluid and then follow that point over time so that I can get a displacement vs time plot. Can the probe function be used to do that? I notice however, that the probe function is included in the icoDymFoam and not interFoam, and the dambreak problems are solved using interFoam I am using OpenFOAM 1.5. Suggestions / guidance would be appreciated. Musa |
Hello,
is it really that diff
Hello,
is it really that difficult getting some value over time plots from existing results? For sure you can set the probes at the beginning of your calculation, but maybe you don't know at the beginning where the interesting points will be in the end? Any idea of a simpler solution, maybe exporting the values from paraview? Regards, dohnie |
Hi Everybody
I do not have cl
Hi Everybody
I do not have clear the use of probe function for getting time series of data at a point. I am user of 1.4.1 version. I did as Eugene said (adding some text at the end of the controlDict file) but I had no results. I also tried as Srinath says and I could not compile. Any idea for helping me? PS: I used paraview 2.4.4 for exporting time series at a point but the results were wrong. I posted that some days ago /Image{} |
/image{grafico}
/image{grafico}
|
http://www.cfd-online.com/Open
|
Hi Martin,
"I did as Eugene
Hi Martin,
"I did as Eugene said (adding some text at the end of the controlDict file) but I had no results." What do you mean by no result ? You can have a look in the tutorial, I don't remember which one but, there is one which explain how to use the probe utility Cedric |
Hi Cedric,
When starting a
Hi Cedric,
When starting a case using e.g. icoFoam the problem is: --> FOAM FATAL IO ERROR : ill defined primitiveEntry starting at keyword 'functions' on line 59 and ending at line 80 file: /home/vavuorin/OpenFOAM/martin-1.4.1/run/tutorials/icoFoam/cavity/system/control Dict at line 80. From function primitiveEntry::readData(Istream& is) in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 97. FOAM exiting I have looked for "probe" in both ProgrammersGuide and UserGuide and nothing was found. Thanks for your reply. Martín |
Hi again,
can you post a c
Hi again,
can you post a copy of your controlDict file. Or have a look on the oodles tutorial, there is one called pitzDaily and in system/controlDict you can have an example of probe utility. Be sure that this one is working, try it and there will be no reason not to do it to your case. I hope it will help you. Cedric |
Hi Cedric
I made a mistake
Hi Cedric
I made a mistake in my controlDict file. I copied the last part from the oodles tutorial and it ran well. Thank you very much for your help. Martin |
Hi Cedric,
my deltaT is 0.001
Hi Cedric,
my deltaT is 0.001 second and the first column in probes/gamma file is not every 0.001 second: # time (3.14 0.5 0) 0.00025 0 0.0005 0 0.00075 0 0.001 0 0.001 0 0.001 0 0.00125 0 0.0015 0 0.00175 0 0.002 0 0.002 0 0.002 0 0.00225 0 0.0025 0 0.00275 0 // // 0.0085 2.2152042e-135 0.00875 5.0483571e-134 0.009 7.4230374e-133 0.009 7.4230374e-133 0.009 7.4230374e-133 0.00925 7.9418236e-132 0.0095 6.1437403e-131 0.00975 3.8364055e-130 0.01 1.3142907e-129 0.01 1.3142907e-129 0.01 1.3142907e-129 Any clue? Thank you in advance Martín |
Hi Martin,
I think your "d
Hi Martin,
I think your "deltaT" is not the time step of your run but the time you save your result. Your time step is 0.00025. It means that you save your result every 4 iterations. (I hope you've got big hard-drive) :o) Check on the user-guide how the controlDict file is working, here you will find the clue. I hope it help, Cedric |
Hi Cedric,
this is my contr
Hi Cedric,
this is my control file: /*---------------------------------------------------------------------------*\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 1.4 | | \ / A nd | Web: http://www.openfoam.org | | \/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; root ""; case ""; instance ""; local ""; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application rasInterFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 0.01; deltaT 0.001; writeControl timeStep; writeInterval 1; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable yes; adjustTimeStep no; maxCo 1; maxDeltaT 1; functions ( probes1 { // Type of functionObject type probes; // Where to load it from (if not already in solver) functionObjectLibs ("libsampling.so"); // Locations to be probed. runTime modifiable! probeLocations ( (3.14 0.505 0.0) ); // Fields to be probed. runTime modifiable! fields ( gamma ); } ); and my probe/0/gamma is: # Time (3.14 0.505 0) 0.00025 0 0.0005 0 0.00075 0 0.001 0 0.001 0 0.001 0 0.00125 0 0.0015 0 0.00175 0 0.002 0 0.002 0 0.002 0 0.00225 0 0.0025 0 0.00275 0 0.003 0 0.003 0 0.003 0 0.00325 0 0.0035 0 0.00375 0 0.004 0 0.004 0 0.004 0 0.00425 0 0.0045 0 0.00475 0 0.005 0 0.005 0 0.005 0 0.00525 0 0.0055 0 0.00575 0 0.006 0 0.006 0 0.006 0 0.00625 1.43126e-146 0.0065 2.67687e-143 0.00675 2.30226e-140 0.007 1.12933e-137 0.007 1.12933e-137 0.007 1.12933e-137 0.00725 1.47069e-134 0.0075 1.21908e-132 0.00775 5.01872e-131 0.008 1.35218e-129 0.008 1.35218e-129 0.008 1.35218e-129 0.00825 3.01483e-128 0.0085 5.20517e-127 0.00875 7.23858e-126 0.009 8.36331e-125 0.009 8.36331e-125 0.009 8.36331e-125 0.00925 9.29989e-124 0.0095 9.01328e-123 0.00975 7.69994e-122 0.01 5.8428e-121 0.01 5.8428e-121 I have problems only with multiphase flow solvers (rasInterFoam and interFoam). Probes functions work fine with other solvers (icoFoam, oodles, turbFoam). Thanks Martin. |
I also want to plot variables over time. I think this is the right thread for my problem. Unfortunately I neither know what oodless is, nor what probe is. Could someone explain me these in more detail, or what I exactly have to do to plot a variable over time? Thanks a lot!
|
The utility probeLocations can help. It just need a probesDict in system and can postprocess existing result files.
|
Hi
Why in my probe file, the result at each time (only one in my case), aren't aligned on one row? Thanks |
All times are GMT -4. The time now is 02:32. |