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

Speed settings for mesh nodes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2024, 10:16
Smile Speed settings for mesh nodes
  #1
New Member
 
Evelyn
Join Date: Mar 2021
Posts: 20
Rep Power: 5
Yanlu is on a distinguished road
In the literature, the patient's MRI data is read and the velocity value of the entrance at each moment is obtained. How to assign the values of different grid nodes at various times to the corresponding grid nodes in cfx as the entrance boundary? Any ideas?

[1]Pirola, S., Cheng, Z., Jarral, O.A., O’Regan, D.P., Pepper, J.R., Athanasiou, T., Xu, X.Y., 2017. On the choice of outlet boundary conditions for patient-specific analysis of aortic flow using computational fluid dynamics. J Biomech 60, 15–21. https://doi.org/10.1016/j.jbiomech.2017.06.005
__________________
biofluid mechanics;Hemodynamics
Yanlu is offline   Reply With Quote

Old   May 12, 2024, 18:10
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,729
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I assume you are trying to apply a varying boundary condition, where the value of the boundary condition varies in space (so across the boundary condition) and time.

You will probably need a user fortran routine to do this. This will give you complete control over your boundary condition. It is not easy to do, so read the CFX documentation on user fortran carefully, and look at the examples it gives.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 12, 2024, 22:59
Default
  #3
New Member
 
Evelyn
Join Date: Mar 2021
Posts: 20
Rep Power: 5
Yanlu is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I assume you are trying to apply a varying boundary condition, where the value of the boundary condition varies in space (so across the boundary condition) and time.

You will probably need a user fortran routine to do this. This will give you complete control over your boundary condition. It is not easy to do, so read the CFX documentation on user fortran carefully, and look at the examples it gives.
Thank you very much for your reply! Can the user fortran routine assign a value to the speed of each grid node? In my opinion, I should set the ID number, xyz coordinates and speed values of each grid node at different times in Matlab and put them in a matrix. This matrix is then set to the entrance velocity through the user fortran routine. But how can I know the ID of each grid node? When the grid is very dense, can a unique grid node be accurately located only by xyz coordinates?
__________________
biofluid mechanics;Hemodynamics
Yanlu is offline   Reply With Quote

Old   May 12, 2024, 23:43
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,729
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
In user fortran you can program it to do whatever you want - assuming you are a good enough programmer to work out how to do it. As I said, have a look at the CFX documentation on user fortran and see what it looks like to you.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 13, 2024, 00:30
Default
  #5
New Member
 
Evelyn
Join Date: Mar 2021
Posts: 20
Rep Power: 5
Yanlu is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
In user fortran you can program it to do whatever you want - assuming you are a good enough programmer to work out how to do it. As I said, have a look at the CFX documentation on user fortran and see what it looks like to you.
Ok, thank you! I will try to learn the user fortran.
__________________
biofluid mechanics;Hemodynamics
Yanlu is offline   Reply With Quote

Old   May 13, 2024, 10:57
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,815
Rep Power: 32
Opaque will become famous soon enough
A lot of people tend to confuse things when using discrete data, and you seem to be doing so as well.

Your discrete data already has its own spatial and time grid/mesh. To deal with it, you can use UserFortran to organize and manage your data. However, keep in mind the mesh for discretization is NOT the same mesh for the discrete data --> there is a mapping to be done.

Who is responsible for the mapping between "discrete data mesh" and "solution mesh" -> UserFortran programmer either with local tools or with existing API if the exist.

One thing you can do is to use the mapping tools to map your "discrete data" to the "solution mesh" for each time step manually, and let the User Fortran work on the "mapped data" instead.

You should read how to use Ansys CFX .csv files, how they are loaded into CFX-Pre, how they can be transformed/edited/mapped and how that can help you simplify your tasks.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   May 13, 2024, 11:31
Default
  #7
New Member
 
Evelyn
Join Date: Mar 2021
Posts: 20
Rep Power: 5
Yanlu is on a distinguished road
Quote:
Originally Posted by Opaque View Post
A lot of people tend to confuse things when using discrete data, and you seem to be doing so as well.

Your discrete data already has its own spatial and time grid/mesh. To deal with it, you can use UserFortran to organize and manage your data. However, keep in mind the mesh for discretization is NOT the same mesh for the discrete data --> there is a mapping to be done.

Who is responsible for the mapping between "discrete data mesh" and "solution mesh" -> UserFortran programmer either with local tools or with existing API if the exist.

One thing you can do is to use the mapping tools to map your "discrete data" to the "solution mesh" for each time step manually, and let the User Fortran work on the "mapped data" instead.

You should read how to use Ansys CFX .csv files, how they are loaded into CFX-Pre, how they can be transformed/edited/mapped and how that can help you simplify your tasks.
Yes, you are right. I found a video on how to set a csv file of x,y,z, and temperature as the entrance boundary. It may solve my problem by setting a CSV file of x,y,z,t and velocity. If I succeed, I will reply to this post again.

https://www.youtube.com/watch?v=NjiO9_wizzo
__________________
biofluid mechanics;Hemodynamics
Yanlu is offline   Reply With Quote

Old   May 14, 2024, 04:05
Default
  #8
New Member
 
Evelyn
Join Date: Mar 2021
Posts: 20
Rep Power: 5
Yanlu is on a distinguished road
Quote:
Originally Posted by Yanlu View Post
Yes, you are right. I found a video on how to set a csv file of x,y,z, and temperature as the entrance boundary. It may solve my problem by setting a CSV file of x,y,z,t and velocity. If I succeed, I will reply to this post again.

https://www.youtube.com/watch?v=NjiO9_wizzo
This video solved my problem by setting a CSV file of x,y,z, and velocity. However, his function seems only to be able to set spatial coordinates as input parameters, and I can't turn time t into an input parameter.

__________________
biofluid mechanics;Hemodynamics
Yanlu is offline   Reply With Quote

Reply


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
SIMPLE algorithm SamR Main CFD Forum 19 April 26, 2019 13:06
Reducing the number of nodes Elena T Mesh Generation & Pre-Processing 0 July 6, 2017 14:41
32 Cores Mini-Cluster, 2 Nodes vs. 4 Nodes performance Courageous Hardware 3 July 7, 2016 11:37
Write speed with CFX using 2 nodes and 1gbps ethernet kjetil Hardware 0 February 3, 2016 08:10
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 11:39.