Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Double Initial conditions assignment

Status
Not open for further replies.

rotowash_master

Bioengineer
Nov 7, 2023
3
Good morning everybody,
I am using a Fortran script to implement a bone remodelling model of a femur.
I would like to use two initial conditions files to assign the initial conditions of every state variable of each element.
The use of one initial conditions file rather than the other one is determined only by the sign of Max Principal Stress, meaning that if it is positive, I am using the first table, if it is negative I will use the second one.
Of course, in order to calculate the Max Principal Stress, I would like to assign to every element the initial conditions coming only from the first table, stating if Max Principal Stress is positive or negative, and then reassign the initial conditions using one file or the other for each element, to start the analysis.

I am not sure how could I do it, since SDVINI can be called only once, and UEXTERNALDB is not called for each element, so I can not assign initial conditions to each one of them.

Do you have any idea of a flexible way to implement this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor