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 Members List Search Today's Posts Mark Forums Read

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: 9
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: 277
Rep Power: 10
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,021
Rep Power: 60
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

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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 90 October 3, 2019 07:01
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 09:00.