michelletramper
Subscriber
Dear DrAmine,nnThanks for your quick reply! I indeed am trying to compile the functions (running from the cluster). If I do this, I do not get the syntax error, however, if the simulation starts I get the 'floating point exception' error:nError at Node 0: floating point exceptionnError at Node 3: floating point exceptionnError at Node 1: floating point exceptionnError at Node 5: floating point exceptionnError at Node 6: floating point exceptionnError at Node 4: floating point exceptionnError at Node 7: floating point exceptionnError at Node 2: floating point exceptionnnSo what I would like to achieve is the following: nDescribe the blood-flow in a bended tube using a two-phase model: red blood cells (rbc's) suspended in plasma. nTo get a proper description of the non-Newtonian behaviour, use a UDF that implies an adjusted version of the Carreau-Yasuda model. This model returns the granular viscosity and density of the red blood cells according to the following relationships:nThus, the red blood cell volume fraction (epsilon_rbc) should be extracted from the cell in order to calculate n and m. These parameters can then in their turn compute the viscosity of the mixture using the shear rate. This shear rate should, on its turn, also be extracted from the cell.I hope that you understand what I am trying to achieve haha! thanks for your effort.nnKind regards,nMichellen