# How to calculate the gradient along the boundaries from a known volScalarFiled?

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 18, 2011, 11:48 How to calculate the gradient along the boundaries from a known volScalarFiled? #1 New Member   Join Date: Jul 2011 Posts: 2 Rep Power: 0 Hi, I first obtained a volScalarField in a calculation domain, and then I want to calculate the gradient along the domain boundaries. Does anyone know how to obtain the gradient along domain boundaries from a known volScalarField? Thank you very much!

 October 27, 2011, 09:54 #2 Member   bojiezhang Join Date: Jan 2010 Posts: 64 Rep Power: 9 hi shddx1: I have the same problem with you ! I define a volScalrField first and the value is fixed for all the cells, but I want to caculate the gradient. Do you solve the problem, can you tell me? Thank you!

October 2, 2016, 04:04
#4
Member

A. Min
Join Date: Mar 2015
Posts: 67
Rep Power: 4
Quote:
Hi
could you please explain about it more?
Where should we get this command:
??
Thanks

March 15, 2017, 15:38
#6
New Member

Linyan X
Join Date: Dec 2015
Posts: 23
Rep Power: 3
Quote:
Hi Fanny,

I cannot answer your question. But after reading your question, I have a quick question regarding the volVectorField that you've gotten on your 1st try, named field'gardp0'. How can you implement this volVectorField term into the equation that you want to solve? Like, for example, UEqn.H in interFoam. I want to add the force vector term into the UEqn.H, written as 'interpolate(F)'. But the system will always complain about the format of this vector term.

Hence, I guess you may know this after reading your post. Really appreciate your help for any hints.

Regards,
Linyan

 March 16, 2017, 11:47 #8 New Member   Linyan X Join Date: Dec 2015 Posts: 23 Rep Power: 3 Thanks Fanny! Your hint inspired me! I now realise that the volVectorField term is not supposed to reconstruct. Hence, the 'F' term is written outside of 'reconstruct' structure. Please allow me to quote your answer to my post for future reader's reference. Regards, Antelope X.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Tony Tonton Fluent UDF and Scheme Programming 17 September 21, 2015 09:13 houbaolin FLUENT 0 July 28, 2008 02:51 Sunil FLUENT 0 April 30, 2008 16:44 arther FLUENT 0 April 19, 2006 23:12 hxhua FLUENT 0 July 1, 2005 08:43

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

 Contact Us - CFD Online - Top