CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Question about normal vectors in fvm discretization process

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sbaffini

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2022, 22:56
Default Question about normal vectors in fvm discretization process
  #1
New Member
 
jinhoon park
Join Date: Oct 2022
Posts: 28
Rep Power: 4
tusin111 is on a distinguished road
Hello, I'm Korean, so I can't speak English well. Please understand that part.
I know that fvm does discretization based on the geometric information on the face as it goes through the cell loop.

Also, as far as I know, the normalvector of the face should point outward.

Here's what I'm wondering
For example, suppose there is a face adjacent to cell 0 and number 1, and let that face be called face 0.

Then the normalvector of face 0 of cell 0 and
Is the normalvector value of face 1 of cell 1 the same?

I'm having a very hard time with this problem, please give me the answer!
tusin111 is offline   Reply With Quote

Old   October 25, 2022, 15:40
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,191
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Here it is how it works:

- you loop on faces, not cells

- for each face your data structure will have the two neighbor cells and a face normal

- the normal as stored in the data structure necessarily goes out of one cell and enters the other

- one typically follows a convention here, say, the first stored cell is the one that has the normal exiting

- when looping on faces for the fluxes, you get the two neighbor cells from the data structure, compute the flux with the stored normal, assign it to the first cell, assign it with a reversed sign to the second cell, because the normal in the fv method is always exiting the cell

It's just that easy
FMDenaro likes this.
sbaffini is offline   Reply With Quote

Reply


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
Need help setting up chtMultiRegion OskarT OpenFOAM Pre-Processing 1 September 25, 2019 16:51
some question on matrix in FVM new Main CFD Forum 5 October 15, 2008 05:40
General question on the advantage of FVM jinwon park Main CFD Forum 4 September 4, 2008 16:45
Question: FVM vs. FEM Newton Main CFD Forum 2 November 30, 2005 07:53
a question on FVM arvind Main CFD Forum 1 March 20, 2001 01:00


All times are GMT -4. The time now is 10:38.