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

Source import

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2023, 03:02
Smile Source import
  #1
Senior Member
 
Zese
Join Date: Sep 2013
Posts: 104
Rep Power: 13
zese is on a distinguished road
Dear all

I have a question which confused me. I have a source term for momentum equation in x direction as follow:
(u.\nabla)u+\nablap-(1/Re)\Deltau=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?
zese is offline   Reply With Quote

Old   August 11, 2023, 05:09
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   August 11, 2023, 06:21
Default
  #3
Senior Member
 
Zese
Join Date: Sep 2013
Posts: 104
Rep Power: 13
zese is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
Thank you. do you know how I can do that. I know that matlab create interpolation in 3D by scatteredinterpolant. I mean how I can extract it and import in cfx?
zese is offline   Reply With Quote

Old   August 11, 2023, 06:57
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks 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
[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


All times are GMT -4. The time now is 19:49.