×

Notice

The forum is in read only mode.

Applying conditions to multiple nodes or elements

  • Simon O'Reilly
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 8 months ago #7764 by Simon O'Reilly
Hi all,

I'm currently trying to develop a model in Salome Meca where I want to apply a heat flux to a number of elements or to the nodes of these elements, I'd like to know how to do both so I can compare the results ideally.

I've made some progress already on this goal. I was able to select the elements I want in a tet mesh using the following method (I am writing it mainly in case anyone is looking for how to create a group of elements by location using Salome Meca or Code Aster in the future)

1. I knew the locations where I want the heat power to be applied at so I used these locations and the "Find element by point" tool to find the element number at each of my coordinates and wrote down the element numbers
2. I then went to Mesh > Create Group, selected the mesh I wished to make the group in from the Object Browser and then clicked on "Enable Manual edition" followed by "Set Filter" and added a criterion of "Range of IDS" which were "Equal to" the element number I had obtained in Step 1.
3. I then hit Apply and Close to add these elements to my group, although this had to be done one element at a time as only one element would be equal to the element ID I entered for the filter obviously, this makes the process pretty tedious so it is possible that there is a more efficient way of doing this.

So from this method I could create my group and apply my heat flux to the elements of this group. Now I want to refine the application of this heat power by applying a power distribution to the selected elements and the elements which surround each of them. I have the distribution calculated both as a function of distance from a point (which can be the points I used to find the elements in step 1 above) and also I've written a python script which works out the distribution across a sphere discretised into whatever number of points I want.

So what I need now is a way of applying this distribution to my model. For example instead of selecting, say, element 284 and applying a power of 10 Watts I want element 284 to have a power of 10 W but elements 282, 283, 285 and 286 to all have a power of 7 W where these are the elements next to elm 284. Can anyone tell me a way of doing this in Salome Meca please? Is there a field tool of some kind which can be used?

Also/alternatively can anyone tell me is there a way to hide individual elements in Salome Meca? If I could do this I could hide all the elements that I don't want to apply the power to and then select to apply it to all the elements which remain. Selectively hiding elements is something which I have found very useful in other pre-processor packages so is it possible to do this in Salome?

If anyone wants me to give more information let me know, I'd really appreciate any help I can get here.

Cheers!
More
10 years 8 months ago - 10 years 8 months ago #7766 by kwou
hoi oreillsi

for applying a uniform heat load on a known area you can determine that area in Geometry of Salome. In the mesh module you can than 'copy' that area and apply the load.

for a distributed, non uniform load you can use a Python script as you suggest.
''All you have to do is create a list of areas and applied heat loads.''
See eg
www.caelinux.org/wiki/index.php/Contrib:...te/variable_pressure
where a variable pressure is applied on shell elements, based on the coordinates.
The script should be relatively easy to adapt for your case.

In case of doubt, just let us know.

Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)

--
kind regards - kees
Last edit: 10 years 8 months ago by kwou.
Moderators: catux
Time to create page: 0.108 seconds
Powered by Kunena Forum