|
[Sponsors] |
udf for energy source from proton beam penetration |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 15, 2014, 15:32 |
udf for energy source from proton beam penetration
|
#1 |
Member
hani mortezaee
Join Date: Sep 2014
Posts: 30
Rep Power: 12 |
hi all
i font know how to define a udf that describe a energy deposition in gas from proton beam penetration , the formula that gives the energy deposition is dE/Dx=f(...) , i really need some help , i really appreciate it , and if its quick it will be awesome , im new to udf concept . |
|
September 16, 2014, 03:18 |
|
#2 |
Senior Member
Join Date: Nov 2010
Posts: 103
Rep Power: 16 |
Could you please firstly write down the entire equation for the energy deposition and describe each terms in that equation.
Second, can you provide some details on what you are simulating. Then, i might be able to help you. Cheers! |
|
September 16, 2014, 05:54 |
|
#3 |
Member
hani mortezaee
Join Date: Sep 2014
Posts: 30
Rep Power: 12 |
im gonna simulate natural convection inside a cylindrical enclosure , the formula is dE/dX=4π/(m_e c^2 )∙(nz^2)/β^2 ∙(e^2/(4πε_0 ))^2∙[ln((2m_e c^2 β^2)/(I∙(1-β^2 ) ))-β^2 ]
, this is the bethe-bloch formula , energy per distance that proton go through the matter is a function of proton energy and other parameters like gas atomic number and etc , the protons deposit their energy along their path , and lose their energy and when their energy get to the certain point the energy deposition will be much larger , its just to describe the physics of the proton penetration , there is some relativity terms that are not a concern , there is codes to calculate the beam scattering and energy deposition per cell of the mesh , the codes give a database that every cell get a portion of energy , i need to make fluent read from the database and calculate the stream inside the enclosure , first i was going to develop cfd code from scratch but it seems to be a really hard work to do then i thought fluent will be easier , if further info is required i can give tell me , thank you for the reply , it mean so much |
|
September 16, 2014, 10:37 |
|
#4 | |
Senior Member
Join Date: Nov 2010
Posts: 103
Rep Power: 16 |
Thanks for the explanation. I am not really expert on the field you are working. But, I've just had a look at this page and fairly get the hang of equations.
Correct me if I am wrong, you have a transport equation for E which has a source term on the right hand side. The E only changes by the spatial location and NOT time, right? and there is no diffusion? I think you can define a steady state "User Defined Scalar" (or UDS) in fluent with a source term. The source term should to be coded in an UDF via DEFINE_SOURCE macro. In the source term or the RHS of dE/dx, is there any parameters that change with the location? If not, your life would be much more easier! Quote:
cheers! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPU Linear Solvers for OpenFOAM | gocarts | OpenFOAM Announcements from Other Sources | 37 | August 17, 2022 15:22 |
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error | FerdiFuchs | OpenFOAM Community Contributions | 27 | April 16, 2014 16:14 |
Help for the small implementation in turbulence model | shipman | OpenFOAM Programming & Development | 25 | March 19, 2014 11:08 |
UDF for energy source | JoĆ£o Fernandes | FLUENT | 4 | October 17, 2008 05:53 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |