CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for power law viscosity Received signal SIGSEGV

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2022, 07:58
Default UDF for power law viscosity Received signal SIGSEGV
  #1
bio
New Member
 
Dan
Join Date: Nov 2021
Posts: 1
Rep Power: 0
bio is on a distinguished road
Hi guys,

I‘m using FLUENT 20.0 to do a simulation with non-Newton fluid governed by a power law. the udf code was as follows.
===============================================
#include "udf.h"
DEFINE_PROPERTY(non_newtonian_viscosity,cell,threa d)
{
real viscosity;
real stress;
real visc_min=1;
real visc_max=18;
real stress_min=0.1;
real stress_max=100001;
real n=0.15;
real k=2.52;
stress= C_STRAIN_RATE_MAG(cell,thread);
if (stress>=stress_max)
{
viscosity=visc_min;
}
else if (stress<=stress_min)
{
viscosity=visc_max;
}
else if ((stress>stress_min)&&(stress<stress_max))
{
viscosity=k*pow(stress,n-1);
}
return viscosity;
}
===============================================
The udf could work in fluent,but an error is reported after 2k iterations.

Reversed flow on 7 faces of pressure-outlet 16.
! 2706 solution is converged
2706 3.0994e-04 2.7519e-04 1.9778e-04 9.7265e-05 2.6660e-04 1.4593e-04 0:00:28 18

================================================== ============================

Node 10: Process 18148: Received signal SIGSEGV.

================================================== ============================

999999: mpt_accept: error: accept failed: No error

999999: mpt_accept: error: accept failed: No error

999999: mpt_accept: error: accept failed: No error

999999: mpt_accept: error: accept failed: No error

999999: mpt_accept: error: accept failed: No error

999999: mpt_accept: error: accept failed: No error

Can anyone give me some advise, I have no idea what to do..
Thank you very much.
bio is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
parallel run in foam extend CRI_CFD OpenFOAM CC Toolkits for Fluid-Structure Interaction 5 March 28, 2024 08:36
UDF interpretation/compilation dhiraj.lote@gmail.com Fluent Multiphase 0 April 4, 2019 02:02
error: Received signal SIGSEGV ianziti92 Fluent UDF and Scheme Programming 2 December 5, 2018 16:25
Process xxxx: received signal SIGSEGV; The fl process could not be started Someeee FLUENT 1 October 31, 2018 04:32
rhoSimpleFoam time step continuity errors deepbandivadekar OpenFOAM Running, Solving & CFD 2 September 13, 2018 05:50


All times are GMT -4. The time now is 13:18.