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

Finite volume methods

Register Blogs Community New Posts Updated Threads Search

Like Tree19Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2023, 05:00
Default
  #161
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 178
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Oh sorry, that's right you have only a diffusive flux in the lagrangian formulation. Now just keep in mind that you can set the flux to 0 without invoking any differencing scheme. This is the way.


The other way is to set the du/dx to zero and then interpolate it onto the face flux. This way introduces discretization errors and inconsistencies.
I sort have done that. I've simply set the first and second equal, and that's fixed that little issue.
hunt_mat is offline   Reply With Quote

Old   September 21, 2023, 10:12
Default There is something going on at h=1
  #162
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 178
Rep Power: 4
hunt_mat is on a distinguished road
As you can see a lot of the issues I've had have gone away after my rather crude fix the issue at h=0 is now working. The issue is now twofold: The value at h=1 seems to be erratic. I use a stress-free condition at h=1, but there still seems to be a spike.

The other issue is about parametrisation.
Attached Images
File Type: jpg long_time.jpg (13.6 KB, 6 views)
hunt_mat is offline   Reply With Quote

Old   September 21, 2023, 11:20
Default
  #163
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,830
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
How do you introduce the Neumann BC into the scheme?
FMDenaro is offline   Reply With Quote

Old   September 21, 2023, 11:26
Default
  #164
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 178
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
How do you introduce the Neumann BC into the scheme?
Via the flux.
hunt_mat is offline   Reply With Quote

Old   September 21, 2023, 11:39
Default
  #165
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,830
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by hunt_mat View Post
Via the flux.



In your figure I see only the density, I need to check also the velocity plot and all the details about your BC.
FMDenaro is offline   Reply With Quote

Old   September 21, 2023, 12:27
Default
  #166
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 178
Rep Power: 4
hunt_mat is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
In your figure I see only the density, I need to check also the velocity plot and all the details about your BC.
The velocity looks wrong as it should be zero at h=0. I could force this in the algebraic equations.

This is graph is for the edges, rather than the cells. I used interp1 in Matlab to obtain the values, and I got a NaN at h=0 for some reason.
Attached Images
File Type: jpg velocity_lagrangian.jpg (14.3 KB, 9 views)
hunt_mat is offline   Reply With Quote

Old   September 28, 2023, 11:53
Default Most of the problems sorted
  #167
Senior Member
 
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 178
Rep Power: 4
hunt_mat is on a distinguished road
I have the majority of the problems sorted but one issue I think is the length of the rod in question. The way I calculate it is by using the mass in each cell as being constant. and if dh represents the mass of a typical cell, then I use:
dh=\rho dX
where dX represents the new length after compression. The new cell locations are then given as
Code:
X=[0 cumsum(dX)]
Then the length of the rod is given as X(end).

As you can see, it hasn't gone down much and I wondered if this was the code or just a poor choice of parameters.
Attached Images
File Type: jpg 1D_length.jpg (13.4 KB, 3 views)
hunt_mat is offline   Reply With Quote

Reply

Tags
finite volume method


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
multiphaseEulerFoam FOAM FATAL IO ERROR qutadah.r OpenFOAM Running, Solving & CFD 11 December 10, 2021 20:18
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 18:28
Problem of simulating of small droplet with radius of 2mm liguifan OpenFOAM Running, Solving & CFD 5 June 3, 2014 02:53
Gradient evaluation in Finite Volume Methods yidongxia Main CFD Forum 7 August 6, 2012 10:23
Unstructured grid finite volume methods Marcus Main CFD Forum 3 December 5, 2000 00:25


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