CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

How to define a rather complex custom field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2021, 07:55
Smile How to define a rather complex custom field
  #1
New Member
 
ata
Join Date: Feb 2015
Posts: 4
Rep Power: 11
ata313ata is on a distinguished road
Hi everybody,

How can I Define a new custom field such as, "grad(rho).grad(p)" in Ansys Fluent (the "." in the formula reads dot product)?
Is it possible without creating a UDF or I need to define one? If so, how?

Thanks very much in advance.
ata313ata is offline   Reply With Quote

Old   August 17, 2021, 15:31
Default
  #2
Senior Member
 
Lorenzo Galieti
Join Date: Mar 2018
Posts: 373
Rep Power: 12
LoGaL is on a distinguished road
In cfx-post it should be easy
LoGaL is offline   Reply With Quote

Old   August 17, 2021, 19:57
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,673
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Maybe... Some issues that arise are that gradients need discretization and you have to be clear whether you want the raw gradients or the ones with flux limiters (the reconstruction gradients).

First you need to keep temporary memory from being freed. Type into the TUI

solve/set/expert
and find the prompt to keep temporary solver memory from being freed and answer yes.

Then run an iteration so that the solver fills up the memory. If you can find all the field variables needed for your formula and you know how to write it out the long way, then you're set. Otherwise, it does now allow you to access gradient macros for the UDF.
LuckyTran is offline   Reply With Quote

Reply

Tags
define a new field, define a new variable., new custom field


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 04:50
Using surface integrals in custom field functions. henvic FLUENT 0 March 17, 2018 07:09
Problem in sampling data of custom field function in ANSYS FLUENT v14 apek_great ANSYS 1 February 26, 2014 05:10
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
ACCESS VIOLATION MHDWill FLUENT 1 September 23, 2007 02:51


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