How to generate input file for Random_Positioning of fibers RVE model and Generate fiber in MATLAB.
Rajesh Dewangan To create an input file in MATLAB for short fiber random placement, follow these steps:
1. Define your simulation's parameters, such as the number of fibers, fiber length, and fiber position distribution.
2. To create random placements for the fibers within the provided range, use the rand function.
3. Using the fopen and fprintf functions, save the created locations to a file.
4. The fclose function is used to close the file.
Example Code:
% Define simulation parameters
numFibers = 100;
fiberLength = 0.1;
xMin = -1;
xMax = 1;
yMin = -1;
yMax = 1;
% Generate random positions
fiberPositions = [rand(numFibers, 1)*(xMax - xMin) + xMin, rand(numFibers, 1)*(yMax - yMin) + yMin];
% Open a file for writing
fileID = fopen('fiber_positions.txt', 'w');
% Write the positions to the file
fprintf(fileID, '%f %f\n', fiberPositions');
% Close the file
fclose(fileID);
This code will produce 100 random fiber locations and save them to the file 'fiber positions.txt.'
This input file can be used in your simulation.
Instead of checking only the mRNA level, I want to check the active protein level of MMP-1 in Liver tissue from mice. How can I do that?
03 March 2021 1,763 2 View
I want to analyses the proportion of swimming sperm of three species of fish in two salinities. To analyse the proportion of swimming sperm in a Generalized Linear Model, I would use a Binary...
03 March 2021 2,297 3 View
03 March 2021 8,272 1 View
Hi. Please tell me what guidelines should i need to follow for questionaries' type research work in India. It is not hospital based work, we are conduction basic institutional based qualitative...
03 March 2021 2,037 3 View
Hi, I implemented a code to gabor filter cifar10 data but the images after being filtered and stacked are not clear like the original images. I think the problem is in the way I am using the...
03 March 2021 6,317 1 View
i am try to classify the x-ray images. During classification , can i block unwanted images (except x-ray image).
03 March 2021 7,100 1 View
03 March 2021 5,360 2 View
The term miscibility refers to the single-phase state in thermodynamics. I do not mean the compatibility of different components. To determine the miscibility I know several techniques such as...
03 March 2021 4,107 4 View
If the detection range is in ng/ml but the reference range is in ug/ml for a molecule or protein in serum or plasma .how to dilute and what is the initial volume to be taken for quantitative analysis
02 March 2021 7,670 3 View
02 March 2021 5,204 3 View
Hi, I am using GROMACS 5.1.4 to simulate water in contact with a surface. I am only interested to calculate some properties of water near the surface. Let's say at a distance of x nm from the...
03 March 2021 9,989 2 View
I have prepared a manuscript in IEEE Latex template, but for some purpose, I need to prepare a word file as well (detailed format is not required). Compared to two column .tex file, one column...
02 March 2021 1,830 3 View
Hello, I am working on a soil project and I found a primary research article that tests how the modification of agricultural soil can cause global warming, using a thermal collector, however I...
02 March 2021 7,161 3 View
I made a vertical section plot with WOA .nc file on ODV, and now I want to plot my stations (csv. file) in it. Does anyone know how to import my points to the section? They are two different...
01 March 2021 3,610 1 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
01 March 2021 1,290 2 View
Any idea on how to get the volumic ratio of glass fiber in a gypsum board ? Thank you for your help !
01 March 2021 2,501 3 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View
I have input and output data set for "ANFIS modeling in MATLAB", and I am getting some negative predicted values of output in testing. However, the predicted values of output in training are...
28 February 2021 3,459 3 View
I've used the "export data" option in Vesta software to convert my unit cell into a cif file however when I use that cif in atomsk it shows error such as "can't read the position of atom 0". If I...
28 February 2021 4,966 3 View