Dear George,
Are there any matlab functions that can be used to edit the input file? I want to do FEM analyses involving a material whose Young's modulus is modelded as a random field instead of a constant value. In that case, after I get the coordinates of every elements using your A2M tool, I need to change the Young's modulus of each of those elements in the input file. It is really a hard job to manually edit the input file, especially when there are tons of elements. Could you please give me some suggestions? Thanks, and looking forward to you response..
With thanks,
Xinpeng Wei
Hello Xinpeng Wei,
The task that you want to do requires editing the input file and is possible with some programming in Matlab. There are many ways to do what you want depending on the modeling situation. Two main approaches could be the following:
1) Use of a for loop in Matlab in order to replicate the necessary *ELASTIC definitions for each element (not recommended)
2) Use of the following options (recommended):
*DISTRIBUTION TABLE, NAME=DIST1
MODULUS, RATIO
*DISTRIBUTION, NAME=DISTISO1, LOCATION=ELEMENT, TABLE=DIST1
, E_DEFAULT, NU_DEFAULT
<ELEMENT NUMBER OR ELEMENT SET>, E_I, NU_I
...
*MATERIAL,NAME=MATERIAL1
*ELASTIC
DISTISO1
In any case, you can send me a p.m. if you need more assistance with this issue. I can send you some examples related to the task that you want to do. Please feel free to ask any questions for problems that may arise.
Best regards,
George