CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Fields generated form functionObjects

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2022, 09:17
Default Fields generated form functionObjects
  #1
New Member
 
Zeinab Abosedaira
Join Date: Mar 2022
Posts: 24
Rep Power: 4
ZeinabM is on a distinguished road
Hello all,
So I am trying to calculate the velocity magnitude at certain positions so I am using probes functionObject. Before this, I used mag functionObject to calculate the velocity magnitude.

Now, when I am trying to use the probe on the new field Umag, the functionObject doesn't actually recognize it. This made me think that there might be a difference between the original fields and the fields calculated from postProcessing. I am curious to know the difference between them if there is any.

Thank you so much!
ZeinabM is offline   Reply With Quote

Old   May 17, 2022, 06:00
Default
  #2
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 9
Saleh Abuhanieh is on a distinguished road
Hi,


The generated field by the functionOject "mag" is not registered in the memory like the ones you may see them inside the OpenFOAM solvers.


That's why the probs functionObject could not see it.


Regards,
Saleh
Saleh Abuhanieh is offline   Reply With Quote

Old   May 17, 2022, 17:14
Default
  #3
New Member
 
Zeinab Abosedaira
Join Date: Mar 2022
Posts: 24
Rep Power: 4
ZeinabM is on a distinguished road
Hello Saleh,
thank you for your reply. Since I am interested in OpenFOAM development. I was thinking about editing the mag function in order to register the field in the memory. I think it's going to be a good exercise. I need to understand how fields are added to the memory. If you can help me with explaining that or giving me a tutorial to watch or so. Thank you!
ZeinabM is offline   Reply With Quote

Old   May 18, 2022, 13:44
Default
  #4
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 83
Rep Power: 9
Saleh Abuhanieh is on a distinguished road
Hi Zeinab,

You may check the objectRegistry documentation.

https://openfoamwiki.net/index.php/O...objectRegistry


The IOobject is used in all the OpenFOAM solvers. Check any createFields.H.

Then you may check the forces functionObject since the Cd and Cl can be used by another functionObjects.

I hope that was useful.

Regards,

Saleh
Saleh Abuhanieh is offline   Reply With Quote

Reply

Tags
fields, functionobjects, postprocessing

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does sampleDict have limitation in number of fields? reza2031 OpenFOAM Post-Processing 3 April 22, 2020 14:24
Map fields to a parallel target in OF 2.4.0 DominicTNC OpenFOAM Running, Solving & CFD 3 November 2, 2017 19:32
Utilities: post average turbulence fields and create turbulence fields for LES Hanzo OpenFOAM Running, Solving & CFD 10 August 18, 2017 19:33
How can I write selective additional fields using functionObjects? fpmhadi OpenFOAM 3 July 14, 2011 18:41
Get data in i,j,k forrmat ather than FE form Puneet FLUENT 0 November 19, 2003 13:40


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