CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to write user-defined function object

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2022, 11:53
Smile How to write user-defined function object
  #1
New Member
 
F
Join Date: Oct 2021
Posts: 10
Rep Power: 5
fran.cesc is on a distinguished road
Good morning,
Let's assume I have a scalar field variable x and a scalar field variable y and I want to create a function object that computes x**1.5/y.
How do I write an object function into controlDict, that computes this?
Thanks a lot
fran.cesc is offline   Reply With Quote

Old   January 12, 2023, 16:45
Default
  #2
New Member
 
ap141
Join Date: Sep 2015
Posts: 2
Rep Power: 0
Igor141 is on a distinguished road
Hi fran.cesc,

Did you find a solution ? I'm struggling with the same problem

Thanks
Igor141 is offline   Reply With Quote

Old   January 13, 2023, 10:58
Default
  #3
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 773
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Loop over cells?
dlahaye is offline   Reply With Quote

Reply

Tags
controldict, function object, openfoam, user defined function


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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
Transient User Defined Function in CFX Niru CFX 0 November 12, 2013 17:07
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


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