traction using math expressions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • yanincha
    Junior Member
    • Jul 2020
    • 10

    traction using math expressions

    Hi, could someone tell me how to define the traction load with a mathematical expression, or point me to some examples?
    Currently I am trying to use a SurfaceData,

    <SurfaceData name="traction_force" data_type="vec3" generator="math" surface="all_face">
    <math>-1000*X</math> <math>-1000*X</math> <math>0</math>
    </SurfaceData>

    but febio keeps telling me `invalid value for attribute "generator"`. Also I am not sure how to define a vector math expression.

    Thanks in advance.

    Jianfeng
  • yanincha
    Junior Member
    • Jul 2020
    • 10

    #2
    I checked the source code, it looks like generator "math" only supports scalar data, right?

    Comment

    • maas
      Lead Code Developer
      • Nov 2007
      • 3456

      #3
      Hi,

      I fixed the issue and the math generator will now also work for vec3 variables. If you reach out to me via email (steve dot maas at utah dot edu) I can give you a new executable.

      However, I do want to point out that you don't need a SurfaceData section for prescribing the traction via a math expression. For instance, the following should work to:

      Code:
      		<surface_load type="traction" surface="SurfaceTraction1">
      			<scale lc="1">1</scale>
      			<traction type="math">X,0,0</traction>
      		</surface_load>
      Perhaps give that a try first and let me know if that worked for you.

      Cheers,

      Steve
      Department of Bioengineering, University of Utah
      Scientific Computing and Imaging institute, University of Utah

      Comment

      Working...
      X