TAGGED: 2-way-coupled-fsi, ansysfluent, rocky-dem, udf-in-fluent
-
-
January 27, 2025 at 9:26 amjarmouniSubscriberHello everyone,When linking Ansys Fluent and Rocky (2-way coupling unresolved), I received this error message. After the first time step this appears and then nothing happens during the simulation.For information: I use a UDF to describe the viscosity of the non-Newtonian fluid.Thank you very much for your support.Kind regards,Noureddien Jarmouni******************************************************************************************************************************************************************************************************************UDF**
*************#include "udf.h"#include "math.h"DEFINE_PROPERTY(Bingham_viscosity, c, t){real gamma_dot; /* Scherrate */real tau_y; /* Yield Stress */real mu_p; /* Plastische Viskosität */real B; /* Magnetfeldstärke */real apparent_visc; /* Scheinbare Viskosität */real k1 = 111252.7; /* Materialkonstante 1 */real k2 = 43413.6; /* Materialkonstante 2 *//* Benutzerspezifische Parameter */mu_p = 0.320; /* Plastische Viskosität in Pa.s */B = 0.5; /* Magnetfeldstärke in Tesla *//* Funktion für Yield Stress in Abhängigkeit vom Magnetfeld */tau_y = k1 * pow(B, 2) + k2 * B;/* Berechnung der effektiven Scherrate */gamma_dot = C_STRAIN_RATE_MAG(c,t);/* Vermeidung von Division durch Null */if (gamma_dot > 1e-6){apparent_visc = (tau_y / gamma_dot) + mu_p;}else{apparent_visc = 0.320; /* Hohe Viskosit t bei sehr niedrigen Scherraten */}//Message("B= %f , tau_y= %f , gamma_dot= %f , apparent_visc= %f \n", B, tau_y, gamma_dot, apparent_visc);return apparent_visc;
****************************************************************************************************************************************************************************************************************
**rocky-simulation.rocky20.log**
**************************************************************************************************************************************** Ansys Rocky DEM Solver ** 3D Discrete Element Modeling (DEM) Simulator ** Version 2024.0612 ** Release 24.2.0 ** (c) 2024 Ansys, Inc. - All Rights Reserved ****************************************************************************************************Command line:C:\Program Files\ANSYS Inc\v242\rocky\bin\RockySolver.exe--rcy-file=C:\Users\noureddine.jarmouni\Desktop\Rocky 20250125\Ansys-Rocky Kopplung_20250125_v01_JaN.rocky.files\simulation/rocky_simulation.rocky20--ncpus=10OS info:Windows 10 ServerStandardRelease version 10.0.17763License setup:Path:Vendor: AnsysHeartbeat: 300N. Retries: 5Parameters:Input filename: C:\Users\noureddine.jarmouni\Desktop\Rocky 20250125\Ansys-Rocky Kopplung_20250125_v01_JaN.rocky.files\simulation/rocky_simulation.rocky20Number of processors to use: 10Resume previous simulation: 0Use GPU: 0HDF library version: 1.12.1CPU info:CPU brand: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHzCore count: 12Checkout Ansys solver license: rocky_solverCheckout 6 Rocky HPC unit licenses granted.Dynamically allocated arrays growth rate set to: 1.1Found an advanced parameters file, overwriting configuration.Setting breakage_overlap_factor to 0.25Setting reset_only_physical_contacts_data to 0Setting refine_concave_search to 1Setting use_non_round_torque_correction to 1Setting linear_hyst_damp to 0Setting monitor frequency to 1Setting radl_update_distance_multiplier to 1Setting radl_neighbor_distance_multiplier to 3Using grid search: falseUsing sparse grid: falseParticles:Name: DiamantpartikelShape: ptSphericalMaterial Index: 0Smallest sieve size: 0.001Meshing type: pmtNone--------------------Materials:Index: 0Name: Default ParticlesStiffness: 1e+07--------------------Index: 1Name: Default BeltStiffness: 1e+10--------------------Index: 2Name: Default BoundaryStiffness: 1e+10--------------------Index: 3Name: DiamantStiffness: 1.05e+11--------------------Index: 4Name: HSSStiffness: 2.24e+10--------------------Loading addins configuration: C:\Users\noureddine.jarmouni\Desktop\Rocky 20250125\Ansys-Rocky Kopplung_20250125_v01_JaN.rocky.files\simulation\addins.configSimulation setup done!SPH Density Monitor: the module is being disabled because the simulation has no SPH elements.Triangle scalarsEdge Length [m] data type size: 24bytesParticle ScalarsTime Of Release [s] data type size: 8bytesContact Info Starting Index [-] data type size: 4bytesCFD Index [-] data type size: 4bytesSolidExplicitForce [N/m3] data type size: 24bytesSolidImplicitForce [N.s/m4] data type size: 8bytesParticle Contact scalarsNormal [m] data type size: 12bytesScale [-] data type size: 4bytesNear Global Index [-] data type size: 4bytesNormal Force [N] data type size: 8bytesContact Point Coordinate [m] data type size: 24bytesOverlap [m] data type size: 8bytesPrevious Overlap [m] data type size: 8bytesHome Index [-] data type size: 4bytesNear Index [-] data type size: 4bytesState [-] data type size: 2bytesTangential Force [N] data type size: 24bytesIs Sliding [-] data type size: 1bytesPrevious Normal Vector [-] data type size: 12bytesTriangle Contact scalarsNormal [m] data type size: 12bytesScale [-] data type size: 4bytesNear Global Index [-] data type size: 4bytesNormal Force [N] data type size: 8bytesContact Point Coordinate [m] data type size: 24bytesOverlap [m] data type size: 8bytesPrevious Overlap [m] data type size: 8bytesHome Index [-] data type size: 4bytesNear Index [-] data type size: 4bytesNear Location [-] data type size: 4bytesState [-] data type size: 2bytesTangential Force [N] data type size: 24bytesIs Sliding [-] data type size: 1bytesPrevious Normal Vector [-] data type size: 12bytesFluid scalarsFluid Density [kg/m3] data type size: 8bytesFluid Viscosity [Pa.s] data type size: 8bytesSolid Volume Fraction [-] data type size: 8bytesFluid Velocity [m/s] data type size: 24bytesFluid Pressure Gradient [Pa/m] data type size: 24bytesSolid Explicit Force [N/m3] data type size: 24bytesSolid Implicit Force [N.s/m4] data type size: 8bytesFluid Velocity U Gradient [1/s] data type size: 24bytesFluid Velocity V Gradient [1/s] data type size: 24bytesFluid Velocity W Gradient [1/s] data type size: 24bytesStatic Pressure [Pa] data type size: 8bytesN. Total Particles: 35808enabled: 35808released: 35808Particle scalars not dimensionalized:Contact Info Starting IndexCFD IndexContact scalars not dimensionalized:NormalScaleNear Global IndexHome IndexNear IndexStateIs SlidingPrevious Normal VectorContact scalars not dimensionalized:NormalScaleNear Global IndexHome IndexNear IndexNear LocationStateIs SlidingPrevious Normal VectorRocky CFD coupling mode = Two Way By IPCRocky Fluent TwoWay Initialize Coupling: connection id = 11984Waiting for fluent messageFluent write data message received.Sent Fluent Data Read Message.CFD travel distance updated: 0.00025minimum_cell_length: 7.94834e-05minimum_spherical_particle_diameter: 0.001overwrite_cfd_update_distance: 0user_cfd_update_distance: 0Fluent neighbor averaging:Averaging method: cfd_avrg_method_VolumetricDiffusionMin iterations (averaging_parameters.min_iterations): 1Max iterations (averaging_parameters.max_iterations): 500Solid fraction target (averaging_parameters.sfract_target): 0.65Number of elements: 5918350Number of sides: 11967060Output time set to: 0.001sN. CFD iterations per output: 1Fluent time-step: 0.001sN. Rocky iterations per output: 808.142CFDCoupling: Target DT = 0.001Simulation initialization done!Simulation Flags:has_round_particles: 1has_non_round_particles: 0has_only_round_particles: 1has_particles_instantaneous_breakage: 0has_particles_discrete_breakage: 0has_custom_particles: 0has_fiber_particles: 0has_shell_particles: 0has_concave_particles: 0has_meshed_particles: 0has_boundaries_wear: 0has_adhesion: 0Physics models:Rolling resistance model: rrmNoneNormal force model: nfmLinearHysteresisAdhesion model: amConstantTangential force model: tfmElasticTangentialImpact energy model: iemRockyRestitution model: rmConstantStiffness correction factor: 0.1Thermal modeling: 0Thermal conduction correction model: tcmNoneCoarse Grain Modeling (Bierwisch): 0Coarse Grain Modeling - Intra Parcel Dissipation (Radl): 0Domain settings:Coordinate limits at boundary limits:Boundary limits min: (-0.04, -0.02, 0)Boundary limits max: (0.04, 0.02, 0.0645)No Periodic boundariesSolver settings:Timestep: 1.23741e-06Timestep model: tmConstantSimulation duration: 0.005Current time: 0Output frequency: 0.001Total number of outputs to generate: 5Wear start: 9.998Energy Spectra start: 10Breakage start: 9.998Energy Spectra release time delay: 2Breakage release time delay: 2Wear geometry update frequency: 0.005Loading n-steps: 15Release particles without overlap check: 0Overlap particles delay: 0.025 [s]Push active particles period: 0.0249993 [s]Particles sorting distance: 0.0025 [m]Neighboring Distance (particle-particle): 0.000375 [m]Neighboring Distance (particle-triangle): 0.000375 [m]Use GPU Sorting: 0Motion frames:Number of frames: 6Periodic motion: 0Has free body motion: 0CFD settings:Coupling mode: cfdcTwoWayParticle Group: DiamantpartikelDrag law: cfd_drag_law_HuilinGidaspow2003Lift law: cfd_lift_law_noneTorque law: cfd_torque_law_noneVirtual mass law: cfd_virtual_mass_law_noneHeat convection law: cfd_convection_law_noneSolver progress summary frequency set to: 0.001Particles sorting distance changed from: 0.0025 to: 0.00843811 current simulation time is: 1.23609e-06Averaging warning: target volume fraction of 0.65 not reached after 500 iterations limitVolumetric diffusion averaging may be taking too long.501 iterations were required.Sending fluent messageFirst Fluent data send.Averaging warning: target volume fraction of 0.65 not reached after 500 iterations limitSend Rocky Data Write Message.Averaging warning: target volume fraction of 0.65 not reached after 500 iterations limit1 particle(s) reentered the cfd domainAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitCFDCoupling: Send CFD dataRocky current time = 0.001 iteration: 809 last output time: 0.001CFD flow time: 0.001 iteration: 0Sending fluent messageAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitSend Rocky Data Write Message.Issues found since last output!- 11 particles reentered the cfd domain during 7 events (average of 1.57143 particles per event)- Contacts overlap, an average of:0.502% of contacts reached more than 2.5% overlap.0.103% of contacts reached more than 10% overlap.0.0588% of contacts reached more than 20% overlap.collected in 809 timesteps totaling 47284047 contact overlapsIssues found since last output!- An average of 501 iterations during 14 events produced the following output volume fraction statistics: minimum = 0.67, maximum = 0.68, average = 0.67Issues found since last output!- Sorting distance has changed within: 0.00843811 to: 0.00844657 in 2 eventsWaiting for fluent messageFluent write data message received.Sent Fluent Data Read Message.CFDCoupling: Received CFD data. Target DT = 0.001File: 1Simulation time: 0.001N. Total Particles: 35808N. Enabled Particles: 35808N. Released Particles: 35808N. Enabled Elements: 0N. Released Elements: 0N. Particle Fragments: 0N. Triangles: 24N. Triangle Nodes: 16N. Neighbors: 206285N. Particle Neighbors: 200785, RR: 200785, RN: 0, NN: 0N. Triangle Neighbors: 5500, TR: 5500, TN: 0N. Surface Contacts: 64821, particles: 62677, triangles: 2144N. Adhesion Contacts: 0, particles: 0, triangles: 0Neighbor Contact Ratio: 3.182379Estimated Limits of Surface Velocity:Total - min: 2e+01 max: 2e+01 average: 2e+01Boundaries - min: 2e+01 max: 2e+01 average: 2e+01Particles - min: 8 max: 1e+01 average: 9CPU:Memory Usage: 3949 MB of 65503 MBFree Memory: 18522 MBExecution Times:Execution Times per Call:Search - Cumulative: 0.02204[s] n_calls: 79, From last output: 0.02204[s] n_calls: 79Search PP - Cumulative: 0.05591[s] n_calls: 26, From last output: 0.05591[s] n_calls: 26-- Sorting - Cumulative: 0.01493[s] n_calls: 2, From last output: 0.01493[s] n_calls: 2-- BuildBVHTree, - Cumulative: 0.00222[s] n_calls: 26, From last output: 0.00222[s] n_calls: 26-- Neighbors - Cumulative: 0.03621[s] n_calls: 26, From last output: 0.03621[s] n_calls: 26Search PT - Cumulative: 0.00504[s] n_calls: 57, From last output: 0.00504[s] n_calls: 57-- CheckActives - Cumulative: 0.00001[s] n_calls: 57, From last output: 0.00001[s] n_calls: 57-- MarkActives - Cumulative: 0.00002[s] n_calls: 2, From last output: 0.00002[s] n_calls: 2-- PushActives - Cumulative: 0.00001[s] n_calls: 57, From last output: 0.00001[s] n_calls: 57-- UpdateBVH - Cumulative: 0.00006[s] n_calls: 57, From last output: 0.00006[s] n_calls: 57-- Neighbors - Cumulative: 0.00120[s] n_calls: 57, From last output: 0.00120[s] n_calls: 57Overlap - Cumulative: 12.66359[s] n_calls: 809, From last output: 12.66359[s] n_calls: 809Force - Cumulative: 0.75080[s] n_calls: 809, From last output: 0.75080[s] n_calls: 809Move - Cumulative: 0.00211[s] n_calls: 809, From last output: 0.00211[s] n_calls: 809Output - Cumulative: 1791.88875[s] n_calls: 1, From last output: 1791.88875[s] n_calls: 1Iteration - Cumulative: 16.11244[s] n_calls: 809, From last output: 16.11244[s] n_calls: 809Total Execution Times: 13035[s], From last output: 13035[s]Search - Total: 1.74[s] = 0.01 %, From last output: 1.74[s] = 0.01 %- Search PP - Total: 1.45[s] = 83.48 %, From last output: 1.45[s] = 83.48 %-- Sorting, - Total: 0.03[s] = 2.05 %, From last output: 0.03[s] = 2.05 %-- BuildBVHTree, - Total: 0.06[s] = 3.98 %, From last output: 0.06[s] = 3.98 %-- Neighbors, - Total: 0.94[s] = 64.78 %, From last output: 0.94[s] = 64.78 %- Search PT - Total: 0.29[s] = 16.51 %, From last output: 0.29[s] = 16.51 %-- CheckActives - Total: 0.00[s] = 0.11 %, From last output: 0.00[s] = 0.11 %-- MarkActives - Total: 0.00[s] = 0.02 %, From last output: 0.00[s] = 0.02 %-- PushActives - Total: 0.00[s] = 0.30 %, From last output: 0.00[s] = 0.30 %-- UpdateBVH - Total: 0.00[s] = 1.17 %, From last output: 0.00[s] = 1.17 %-- Neighbors - Total: 0.07[s] = 23.82 %, From last output: 0.07[s] = 23.82 %Overlap - Total: 10244.85[s] = 78.60 %, From last output: 10244.85[s] = 78.60 %Force - Total: 607.39[s] = 4.66 %, From last output: 607.39[s] = 4.66 %Move - Total: 1.71[s] = 0.01 %, From last output: 1.71[s] = 0.01 %Output - Total: 1791.89[s] = 13.75 %, From last output: 1791.89[s] = 13.75 %Module Execution Times:CFD Coupling- Averaging - Cumulative: 207.44257[s] n_calls: 2, From last output: 207.44257[s] n_calls: 2- Send Data - Cumulative: 375.11285[s] n_calls: 2, From last output: 375.11285[s] n_calls: 2- Receive Data - Cumulative: 1767.81645[s] n_calls: 1, From last output: 1767.81645[s] n_calls: 1- Update Domain - Cumulative: 818.95781[s] n_calls: 12, From last output: 818.95781[s] n_calls: 12- Find Cells - Cumulative: 0.01242[s] n_calls: 13, From last output: 0.01242[s] n_calls: 13- Volume Fraction - Cumulative: 54.72847[s] n_calls: 11, From last output: 54.72847[s] n_calls: 11- Exchange Terms - Cumulative: 0.00294[s] n_calls: 809, From last output: 0.00294[s] n_calls: 809Total Module Execution Times: 13365[s], From last output: 13365[s]CFD Coupling - Total: 13364.98[s] = 102.53 %, From last output: 13364.98[s] = 102.53 %- Averaging - Total: 414.89[s] = 3.10 %, From last output: 414.89[s] = 3.10 %- Send Data - Total: 750.23[s] = 5.61 %, From last output: 750.23[s] = 5.61 %- Receive Data - Total: 1767.82[s] = 13.23 %, From last output: 1767.82[s] = 13.23 %- Update Domain - Total: 9827.49[s] = 73.53 %, From last output: 9827.49[s] = 73.53 %- Find Cells - Total: 0.16[s] = 0.00 %, From last output: 0.16[s] = 0.00 %- Volume Fraction - Total: 602.01[s] = 4.50 %, From last output: 602.01[s] = 4.50 %- Exchange Terms - Total: 2.38[s] = 0.02 %, From last output: 2.38[s] = 0.02 %Total Execution Times (All listed above): 12647.58[s] = 97.03 %Total Execution Times (Unlisted): 387.39[s] = 2.97 %8 particle(s) reentered the cfd domainAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitVolumetric diffusion averaging may be taking too long.501 iterations were required.DEM-CFD critical explicit time step:78.2% of the particles exceeded 50% the CFD critical explicit time step.78.1% of the particles exceeded 75% the CFD critical explicit time step.78% of the particles exceeded 100% the CFD critical explicit time step.Averaging warning: target volume fraction of 0.65 not reached after 500 iterations limitAveraging warning: target volume fraction of 0.65 not reached after 500 iterations limitParticles sorting distance changed from: 0.00844657 to: 0.00879211 current simulation time is: 0.00100494Averaging warning: target volume fraction of 0.65 not reached after 500 iterations limit -
January 27, 2025 at 10:05 amRobForum Moderator
If you run without Rocky what does the viscosity contour look like? How are you adding particles in Rocky? Ie what separation is there between them on the release?
-
January 27, 2025 at 10:41 amjarmouniSubscriberHi Rob,Thank you for your reply.I add the particles in Rocky normally, i.e. I define a “Volummetric Inlet” via the “Inets and Outlets” menu, then I enter the mass of the particles I want to have in the tank. This gives me the number of particles in my tank via “Info” in this menu.This is what the viscosity contour looks like.
-
January 27, 2025 at 12:08 pmRobForum Moderator
Do you think a viscosity of 2.95e7 kg/m/s is sensible?
-
January 27, 2025 at 2:31 pmjarmouniSubscriber
In my simulation, I am dealing with a magnetorheological fluid whose viscosity is strongly influenced by an external magnetic field. I had concerns about the viscosity values as they appeared to be very high. For this reason, I performed analytical calculations that support the viscosity results from ANSYS.
-
January 27, 2025 at 2:58 pmRobForum Moderator
And is that fluid moving? As the viscosity becomes (very) high particles will move with the fluid, and if injected may not clear the inlet region before the next one arrives.
-
January 27, 2025 at 9:00 pmjarmouniSubscriber
-
January 28, 2025 at 1:53 pmRobForum Moderator
Can you try limiting the viscosity to around 0.01 Pa.s and see how it behaves. Once the model is working you can ramp it up.
-
- You must be logged in to reply to this topic.
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Script Error
- convergence issue for transonic flow
- RIBBON WINDOW DISAPPEARED
- Running ANSYS Fluent on a HPC Cluster
-
1762
-
635
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.