|
[Sponsors] |
[OpenFOAM] defining more than one field in calculator |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 3, 2013, 10:33 |
defining more than one field in calculator
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
How can define more than only one field in calculator or by any other means?
when I define a new field it replaces to older one. I just want to change field names to more clear ones so that I can compare the results in different cases together,for example I want to name p as p_case1 in case 1 and p_case2 in case2 so that it be distinctive in graphs I want to plot later. any help or nice idea?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 3, 2013, 10:57 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
You can change the "Result Array Name" in the Calculator filter. Does that work for you?
|
|
September 3, 2013, 11:25 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
Hi Bernhard
yes that works but only for one field,I want to define another field like T_KE_lastCycle in return of T too.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 3, 2013, 11:31 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
Add another calculator.
|
|
September 3, 2013, 12:31 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
is it possible to make new fields from current fields by any of postProcessing utilities?
edit: when I open VTK file of fields it has incorrect result in extreme x,mean 0 and .069 that shows very low numbers near zero,may there is a mistake in creating and save VTK file on a line?it should be saved as cell or point values or any other mistake? edit 2: the range of incorrect T is clear in this wider view (3rd picture) edit 3: VTK file are these if you want to test yourself. (the tar.gz files)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by wyldckat; September 4, 2013 at 16:17. |
|
September 3, 2013, 17:13 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Ehsan: From what I can deduce, there seems to have been an interpolation problem at the extremities of the line that was used for the "0.007464_.vtk" data. Since you did not detail the complete list of steps you've followed for generating this data, there is nothing more I can say about this. Good luck! Bruno
__________________
|
|
September 3, 2013, 17:19 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
I defined another VTK and it resolved! its good but I want to know the reason,maybe I have done something that I don't know!
the attached image is the result,thats so good that two graphas are the same nearly almost!too good results is a trouble itself! ------------------ Hi Bruno! I saw your post after I sent above post! but I followed these steps like previous one:
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. Last edited by wyldckat; September 4, 2013 at 16:15. |
|
September 3, 2013, 17:37 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
How exactly did you define the line?
__________________
|
|
September 3, 2013, 18:08 |
|
#9 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
yes it could be the cause.probably I didn't select the x direction and it remained on diagonal direction that it was by default(it was near to do this mistake sometimes)can it make that problem?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 4, 2013, 16:05 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
You didn't answer my question. Therefore, anything is possible...
__________________
|
|
September 4, 2013, 16:37 |
|
#11 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
Hi Bruno
well...I simply selected "X axis" in object inspector properties.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 4, 2013, 16:57 |
|
#12 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
If the line was diagonal, then on one end the values would likely to not even be present. But on the other end, they should be a bit more correct... unless near the top and bottom walls, the values are so low in comparison. You'll have to try and reproduce the same error. But my guess is that there was a very slight change made to the positions of the extremities of the line. An error of 1.0e-7 metres would probably be more than enough. The other possibility is if the geometry is very small, there could be some geometrical representation related errors. I vaguely remember about a situation where streamlines did not work for nano sized domains, because some of the parameters for the streamline algorithm are hard-coded for geometries of at least the millimetre range, if I'm not mistaken.
__________________
|
||
September 6, 2013, 10:29 |
|
#13 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
Hi Bruno
I found out the cause,its related to Mesh regions! when I select the patches and walls as well as internalMesh,the values on extremes(on the patches) are shown mistake by that exess lines goes to zero ! (I don't know why )
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 7, 2013, 03:45 |
|
#14 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Well, I had thought about that possibility that the patches were also active, but since you didn't detail about it, I ignored that possibility Quote:
Bruno
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Solver error Foam::error::printStack | upuli | OpenFOAM Running, Solving & CFD | 4 | May 11, 2018 01:43 |
Using sample to Inlet velocity field | amanbearpig | OpenFOAM Running, Solving & CFD | 14 | November 16, 2015 05:47 |
problem in defining the field | 13msmemusman | OpenFOAM Programming & Development | 14 | March 18, 2015 12:49 |
Problems creating a volScalarField with expressionField function-object | zfaraday | OpenFOAM Running, Solving & CFD | 2 | January 12, 2015 07:49 |
Demagnetization field | jan0385 | ANSYS | 0 | April 12, 2012 09:09 |