|
[Sponsors] |
August 11, 2023, 03:02 |
Source import
|
#1 |
Senior Member
Zese
Join Date: Sep 2013
Posts: 104
Rep Power: 13 |
Dear all
I have a question which confused me. I have a source term for momentum equation in x direction as follow: (u.)u+p-(1/Re)u=F where F is a volume force F(x,y,z). I have F as a text file (x,y,z,F). Now there are two questions: 1. Should I divide F by element volume of mesh then import it to cfx? I have to consider that I have F by solving a nondimensional equation in another software then I exported F in every point into CFX 2. Is there any way better than using user function in cfx to read source file? |
|
August 11, 2023, 05:09 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144 |
You can make the volume force function a 3D interpolation function. Then you do not need to read a file during the solver, you just set it up in CFX-Pre.
You do not divide by the element volume. The source term should be specified in (equation units) per unit volume.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
August 11, 2023, 06:21 |
|
#3 | |
Senior Member
Zese
Join Date: Sep 2013
Posts: 104
Rep Power: 13 |
Quote:
|
||
August 11, 2023, 06:57 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144 |
Have a look at 3D interpolation functions in CFX-Pre and the documentation. They are easy to use.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Invalid Normals for source face to target face while making AMI? | Sorabh | OpenFOAM Meshing & Mesh Conversion | 1 | August 3, 2021 06:35 |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 18:13 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 03:23 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 10:57 |