A program to recognize and reward our most engaged community members
I want to get the average temperature of given volume after running CFD simulation. How can I get the average temp of volume in postprocessing
Hi, avb
I'm not familiar with CFD simulation, but I think the operation is the same .
First, open the result file and plot the contour type (temperature) you want
Second, open query panel and select the element required, turn on all the query fileds, query the elements' temperature and export the query result to a csv file. Then calculate the average temperature you want.
Just like the picture below
Hi, avb I'm not familiar with CFD simulation, but I think the operation is the same . First, open the result file and plot the contour type (temperature) you want Second, open query panel and select the element required, turn on all the query fileds, query the elements' temperature and export the query result to a csv file. Then calculate the average temperature you want. Just like the picture below
I was looking for some other method.
But thanks again this is useful for small number of nodes
Thanks Nagahashi for your reply. This method is useful but my model is very big and when I try to select all the nodes, hyperview crashes.I was looking for some other method.But thanks again this is useful for small number of nodes
Thanks Nagahashi for your reply. This method is useful but my model is very big and when I try to select all the nodes, hyperview crashes.
May I know the approximate number of nodes you are querying?
The folloeing commands may help you, it deals with about two million nodes in one minute.
set t 1hwi OpenStack hwi GetSessionHandle sess$t sess$t GetProjectHandle prj$t prj$t GetPageHandle pg$t [prj$t GetActivePage] pg$t GetWindowHandle win$t [pg$t GetActiveWindow] win$t GetClientHandle cln$t cln$t GetModelHandle mdl$t [cln$t GetActiveModel] set setid [ mdl$t AddSelectionSet node ] mdl$t GetSelectionSetHandle node$t $setidnode$t Add "displayed" mdl$t GetQueryCtrlHandle qry$t qry$t SetQuery "node.id,contour.value" qry$t SetSelectionSet $setid qry$t WriteData result1.csv mdl$t RemoveSelectionSet $setidhwi CloseStack
The newly generated file "result1.csv" is saved in the current working directory(for example :C:\Users\sakihama\Documents\result1.csv)
Hi, avb May I know the approximate number of nodes you are querying? The folloeing commands may help you, it deals with about two million nodes in one minute. set t 1hwi OpenStack hwi GetSessionHandle sess$t sess$t GetProjectHandle prj$t prj$t GetPageHandle pg$t [prj$t GetActivePage] pg$t GetWindowHandle win$t [pg$t GetActiveWindow] win$t GetClientHandle cln$t cln$t GetModelHandle mdl$t [cln$t GetActiveModel] set setid [ mdl$t AddSelectionSet node ] mdl$t GetSelectionSetHandle node$t $setidnode$t Add "displayed" mdl$t GetQueryCtrlHandle qry$t qry$t SetQuery "node.id,contour.value" qry$t SetSelectionSet $setid qry$t WriteData result1.csv mdl$t RemoveSelectionSet $setidhwi CloseStack The newly generated file "result1.csv" is saved in the current working directory(for example :C:\Users\sakihama\Documents\result1.csv)
Thanks a lot. This method works!!