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

how to implement the unit gradient vector in openfoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2022, 02:21
Default how to implement the unit gradient vector in openfoam
  #1
New Member
 
Yang Xueliang
Join Date: Nov 2021
Posts: 10
Rep Power: 3
Youngxl is on a distinguished road
Dear all,
Recently, I have implemented an equation involving the unit gradient vector, which has the following form, I don't know how to implement it, because it involves the case that the denominator is 0. Is there any good way to solve this problem?

Assumed that p is a volScalarField like pressure and I want to calculate the equation n=\frac{grad p}{mag(grad p)}.

Thans for reading my post.
Best wishes,
Young
Youngxl is offline   Reply With Quote

Reply

Tags
gradient, openfoam, unit normal

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
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 14:55
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 20:20
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36


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