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

Ulrich et al . - Development of an OpenFOAMŪ Solver to Investigate the Dynamic Abs...

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

Like Tree3Likes
  • 1 Post By jnagy
  • 1 Post By jnagy
  • 1 Post By chriz11

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2025, 07:09
Default Ulrich et al . - Development of an OpenFOAMŪ Solver to Investigate the Dynamic Abs...
  #1
New Member
 
Jozsef Nagy
Join Date: Dec 2018
Posts: 18
Rep Power: 8
jnagy is on a distinguished road
Comments and questions are welcomed on the article Ulrich et al., Development of an OpenFOAMŪ Solver to Investigate the Dynamic Absorption and Desorption Processes in Metal Hydrides, OpenFOAM Journal, 14 March 2025, https://doi.org/10.51560/ofj.v5.110.
francescomarra likes this.
jnagy is offline   Reply With Quote

Old   March 28, 2025, 06:44
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 869
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
Greetings,

The link provided does not point the paper.

Possibly I am overlooking something?

Thanks.
dlahaye is online now   Reply With Quote

Old   April 1, 2025, 02:32
Default
  #3
New Member
 
Jozsef Nagy
Join Date: Dec 2018
Posts: 18
Rep Power: 8
jnagy is on a distinguished road
Dear Domenico,

you are correct, however now it should work. Thank you for your valuable input.
dlahaye likes this.
jnagy is offline   Reply With Quote

Old   July 22, 2025, 10:28
Default What is delta_wall?
  #4
hef
New Member
 
H Fossum
Join Date: Jan 2021
Posts: 5
Rep Power: 6
hef is on a distinguished road
The twoRegionHydrideFoam code described in the paper is quite neat, I think. However, I have a question I can't figure out from the paper:

In the file constant/metalHydrideSettings, delta_wall is defined so it can be used in other parts of the code, typically when setting boundary conditions for temperature. I don't understand why delta_wall is not simply equal to wallThickness? Instead, the template uses a scaling factor with a rather small "default" value of 1e-3. Why is this needed, i.e., why shouldn't I use the wall thickness directly as delta_wall?
hef is offline   Reply With Quote

Old   September 11, 2025, 09:25
Default
  #5
New Member
 
Christoph Ulrich
Join Date: Feb 2022
Posts: 3
Rep Power: 5
chriz11 is on a distinguished road
Quote:
Originally Posted by hef View Post
The twoRegionHydrideFoam code described in the paper is quite neat, I think. However, I have a question I can't figure out from the paper:

In the file constant/metalHydrideSettings, delta_wall is defined so it can be used in other parts of the code, typically when setting boundary conditions for temperature. I don't understand why delta_wall is not simply equal to wallThickness? Instead, the template uses a scaling factor with a rather small "default" value of 1e-3. Why is this needed, i.e., why shouldn't I use the wall thickness directly as delta_wall?
Hey, sorry for the late response. We use the 1e-3 in metalHydrideSettings as the wallThickness is read from the blockMeshDict where it is declared in mm. If you want to, you can change this and ignore the 1e-3 .

Best regards,
Christoph
hef likes this.
chriz11 is offline   Reply With Quote

Old   September 29, 2025, 10:24
Default
  #6
hef
New Member
 
H Fossum
Join Date: Jan 2021
Posts: 5
Rep Power: 6
hef is on a distinguished road
Quote:
Originally Posted by chriz11 View Post
Hey, sorry for the late response. We use the 1e-3 in metalHydrideSettings as the wallThickness is read from the blockMeshDict where it is declared in mm. If you want to, you can change this and ignore the 1e-3 .

Best regards,
Christoph
Ah, perhaps I should have thought of that. Thank you very much for your answer!

I'm trying to modify twoRegionHydrideFoam so that a constant "filling rate" can be specified. This will be implemented by dynamically modifying the inlet pressure based on the volume-averaged absorption rate in the metal hydride. During my implementation, I came across two minor issues with the code, in case you're interested:

1) When trying to use OpenFOAM's volFieldValue function object, the solver crashes. I think this has something to do with the way the mesh regions are set up, but I'm not certain. (Let me know if you want me to send you the error output.)

2) The density field (rhoGas) on the inlet is not properly updated; for example, when using transient boundary conditions for p and rho, the initial BC value for rhoGas is still retained for the entire simulation. I think this is because rhoGas is explicitly calculated from the ideal-gas law in the code (rhoGasEqn_hydrogen.H) instead of being solved iteratively (which is where the BCs are typically incorporated). So far, I've fixed this by explicitly calculating the boundary field for rho in the same way as the interior field (i.e., from the ideal-gas law), but a more general solution could obviously be implemented.

These are only small problems, and I am very grateful for your publication of this code. Thank you for your excellent work.
hef is offline   Reply With Quote

Old   October 13, 2025, 09:57
Default
  #7
New Member
 
Christoph Ulrich
Join Date: Feb 2022
Posts: 3
Rep Power: 5
chriz11 is on a distinguished road
Hey,

Regarding 1, please feel free to post your error code. Perhaps we can identify the problem.

Regarding point 2: for our purposes, the released code was sufficient, but as you mentioned, a more general solution could be implemented. It's good to hear that you found a working solution, though.


Best regards,
Christoph
chriz11 is offline   Reply With Quote

Old   November 8, 2025, 11:15
Post
  #8
New Member
 
Solon
Join Date: Oct 2025
Posts: 2
Rep Power: 0
solon1210 is on a distinguished road
Hello,

In the parameter studies (section 5.2) it is mentioned that "The findings are consistent with those reported in ...", however, I couldn't find anything that shows this comparison. Was it a qualitative consistency, or were the results explicitly compared to experimental data, for example?

Thanks
solon1210 is offline   Reply With Quote

Old   November 13, 2025, 09:05
Default
  #9
New Member
 
Christoph Ulrich
Join Date: Feb 2022
Posts: 3
Rep Power: 5
chriz11 is on a distinguished road
Hey!

We found qualitative consistency. We tried to be precise by citing the relevant source after each statement.
chriz11 is offline   Reply With Quote

Old   November 19, 2025, 03:34
Default
  #10
New Member
 
Solon
Join Date: Oct 2025
Posts: 2
Rep Power: 0
solon1210 is on a distinguished road
Hello,

Thanks for the clarification!
solon1210 is offline   Reply With Quote

Reply
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
temp dependent density Linas Fluent UDF and Scheme Programming 2 February 13, 2025 19:22
The Solver Failed with a non zero exit code of 2 helpagurlout Main CFD Forum 0 April 6, 2024 17:36
Error SIGSEGV using VOF and UDF JERC_UTFSM Fluent UDF and Scheme Programming 14 November 8, 2021 00:17
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Problems using dynamic mesh and 6dof solver Brett FLUENT 0 March 3, 2006 18:45


All times are GMT -4. The time now is 13:59.